Simple validation
This is only client-side simple javascript validation. You can use default presets or create your own RegExp
HIDE CODE
<?php $xcrud = Xcrud::get_instance(); $xcrud->table('employees'); $xcrud->validation_required('lastName',2)->validation_required('firstName',2)->validation_required('jobTitle'); $xcrud->validation_required('email'); $xcrud->validation_pattern('email','email')->validation_pattern('extension','alpha_numeric')->validation_pattern('officeCode','natural'); $xcrud->limit(10); echo $xcrud->render(); ?>
Employees
# | Lastname | Firstname | Extension | Officecode | Reportsto | Jobtitle | ||
---|---|---|---|---|---|---|---|---|
1 | Gerard | Martinm | x2312 | mgerard@classicmodelcars.com | 4 | 1102 | Sales Rep | View Edit Remove |
2 | View Edit Remove | |||||||
3 | azert | berthe | totot.fr | berthe.azert@myoffice.com | 1 | ' | View Edit Remove | |
4 | 3432432kjkjkjk | pippo.dadmkmkma | 98898989 | pippo.dada.3432432@myoffice.com | 6 | View Edit Remove | ||
5 | View Edit Remove | |||||||
6 | View Edit Remove | |||||||
7 | 8 | View Edit Remove | ||||||
8 | Fausto | Herrera | Roi_4 | herrera.fausto@myoffice.com | 8 | View Edit Remove | ||
9 | Herrera | Fausto | Roi_4 | faustoherrera@outlook.com | 7 | View Edit Remove | ||
10 | View Edit Remove |