Question: A) Create a PHP page that accepts two parameters in the URL: firstName and lastName . Have the script write a Hello message using the
A) Create a PHP page that accepts two parameters in the URL: firstName and lastName. Have the script write a "Hello" message using the name provided by the user. Error checking must be done in the following ways:
-If the first name is set and not blank, but the last name is not set or is blank, display a welcome message using only their first name.
-Firstname NoLastName
-If the last name is set and not blank, but the first name is not set or is blank, display a generic welcome message.
-If neither name is set, or if they are both blank, display a generic welcome message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
