Form processing cancel HELP
Posted: Wed Jun 07, 2006 6:12 am
How can i do to cancel a form processing if a value is blank?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$fieldName = $_POST['fieldName'];
// if you are going to store $fieldName in a database, make sure you escape it here.
if($fieldName == "") {
Die("The field can't be blank!");
}
...