PDA

View Full Version : required fields



AJW06
12-23-2006, 09:17 AM
how do i create a required field

Tyree
12-23-2006, 03:52 PM
You would have to put some field checking into your form processing script. Checks like:


//If "NAME" was left blank:
if (!$_POST['name']);
echo "You forgot to fill in the name field.";
break;
}


You can get a lot more complicated with your error checking than that. But, that should give you the gist of what you can do.