form validation
Posted: Mon Jun 30, 2008 11:30 am
I want to create a PHP form validation. I've looked at a few but none have what I'm looking for.
Example of what I'm looking for.:
1) visitor fills out form (form.php)
2) upon submit, information get's put through validation (validation.php)..
- if all required fields have been filled in, redirect to process page (formProcess.php) where information is sent to database etc..
- if all required fields have NOT been filled in, redirect to original page (form.php), fields that have been filled in should still retain that information. Any fields that need to be filled in are highlighted and an error message appears at the top of the page.
Example of what I'm looking for.:
1) visitor fills out form (form.php)
2) upon submit, information get's put through validation (validation.php)..
- if all required fields have been filled in, redirect to process page (formProcess.php) where information is sent to database etc..
- if all required fields have NOT been filled in, redirect to original page (form.php), fields that have been filled in should still retain that information. Any fields that need to be filled in are highlighted and an error message appears at the top of the page.