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
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