Answered step by step
Verified Expert Solution
Link Copied!

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 image text in transcribed

$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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

Students also viewed these Databases questions

Question

=+derived from the assignment will balance the costs?

Answered: 1 week ago

Question

=+6 Who is the peer of the IA ?

Answered: 1 week ago