Forum Moderators: coopster
Option two qwould look something like:
if (empty($_POST['required_field']){
//Spit out the error and redisplay the form with errors highlighted
} else{
//process the form and display a confirmation
}
NOTE: If you use Javascript to validate the form prior to submission, you must *STILL* validate the form after submission to check for those folks with Javascript disabled.
Have fun.