Question: Attempting to create a single page processing PHP document. My main issue has been displaying error messages. Form has to have stickiness, and should display
Attempting to create a single page processing PHP document. My main issue has been displaying error messages.
Form has to have stickiness, and should display an error message and remove the entry if it is anything other than letters, spaces and apostrophes. How do I write my error message using preg_match so that it displays in the way I am asking 
$fname = ""; if (empty($_POST['name']) ? $nameEzzor = 'Please Entes a valid first name that includes only letters, spaces, dashes, and apostrophes': } else $name = trim(htmlspecialchats ($_POST['name'])): } if(isset($_POST['name'])) echo "value="$frame":?>> p>First Name:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
