PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Validating PHP Form Inputs Depending Other Inputs

Note: This article was originally published at Planet PHP on 10 March 2011.
Planet PHP
Validating PHP Form Inputs Depending Other Inputs By Manuel Lemos Sometimes you have PHP generated pages with forms that have fields which you may want to validate or not depending on the state of other fields.

This article tells how you can easily implement conditional validation logic by explaining how to make one field be validated only if a radio or checkbox is site or some other special custom logic that you need to implement.