⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

how to validation in form



Harasya
  • profile picture
  • Member

Posted 13 March 2013 - 16:49 PM

how to validate form
example
should nama@domain.com
or should the number

heruprambadi
  • profile picture
  • Member

Posted 13 March 2013 - 17:10 PM

check this link :

http://www.grocerycrud.com/documentation/options_functions/set_rules

http://ellislab.com/codeigniter/user-guide/libraries/form_validation.html#validationrules


Harasya
  • profile picture
  • Member

Posted 14 March 2013 - 01:16 AM

thank's many 

but I find it difficult to How about 2 in 1 field validation??


heruprambadi
  • profile picture
  • Member

Posted 14 March 2013 - 08:27 AM

i don't get it. can you explain more detail ?


Harasya
  • profile picture
  • Member

Posted 17 March 2013 - 02:26 AM

example :

$crud->set_rules('name','name','alpha', 'min_length[5]');

is not work


heruprambadi
  • profile picture
  • Member

Posted 18 March 2013 - 02:28 AM

how about this :

$crud->set_rules('name1','alpha1', 'min_length[5]');

$crud->set_rules('name2','alpha2', 'min_length[5]');