![]() |
validate email and phone in form? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: validate email and phone in form? (/showthread.php?tid=12475) |
validate email and phone in form? - El Forum - 10-20-2008 [eluser]slothdog[/eluser] i cant find any info on how to check a field to make sure its a phone number or email. could somebody point me to some info please? thanks! validate email and phone in form? - El Forum - 10-20-2008 [eluser]roj[/eluser] User guide: validation library and scroll to the Rule Reference section at the bottom. There's valid e-mail but the phone number you'll have to use a series of rules...should be easy enough though validate email and phone in form? - El Forum - 10-20-2008 [eluser]slothdog[/eluser] thanks! validate email and phone in form? - El Forum - 10-23-2008 [eluser]Daniel Peraza[/eluser] I would suggest to take Regular Expressions into account when trying to write your own validation rule. |