Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started