Question: NameForm.php In NameForm.php, first you need to design a HTML form as below: Name Form First Name: Middle Name: Last Name: Submit Reset Form Then


NameForm.php In NameForm.php, first you need to design a HTML form as below: Name Form First Name: Middle Name: Last Name: Submit Reset Form Then you need to write a PHP script such that clicking "Submit' button will display a message based on the name(s) provided by the user and current time of the day (in 24-hour format). If the current time is less than 12 (i.e. it is between 00:00 - 11:59), then you have to display the message "Good morning"; otherwise you have to display "Good day". You must implement it using the Logical and Conditional statements of PHP in the following ways: o If all three names are missing display the following error message, "You did not supply any names". If the first name as well as the last name is provided and the current time is less than 12, display the following message, "Good morning xxx xxx! You did not provide middle name". If the first name as well as the last name is provided and the current time is greater than or equal to 12, display the following message, "Good day XXX xxx! You did not provide middle name o If all three names are provided and the current time is less than 12, display the following message, "Good morning xxx xxx xxx! Your middle name is very unique." If all three names are provided and the current time is greater than or equal to 12, display the following message, "Good day XXX XXX xxx! Your middle name is very unique." If any other combination is supplied and the current time is less than 12, display the following message, "Good morning, Welcome to the World of PHP". If any other combination is supplied and the current time is greater than or equal to 12, display the following message, "Good day, Welcome to the World of PHP
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
