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 Attempting to create a single page processing PHP document. My main issue

$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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!