Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Pattern.php Use conditional loop (for/while/do...while) statement of PHP to draw the following pattern. Also use the PHP statement include' to add your Header, Menu and
Pattern.php Use conditional loop (for/while/do...while) statement of PHP to draw the following pattern. Also use the PHP statement include' to add your Header, Menu and Footer to the page. $$$$$$$$$ $$$$$$$ ****** $$$$$ **** $$$ ** $ 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 seed to write a PHP script such that clicking 'Submit button will display a message based on the same(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: If all three sames are missing display the following error message. "You did not supply any names". Sample output is as follows: Name Form First Name: Middle Name Last Name: Submit Reset Form You did not supply any names If only the first name is provided and the current time is less than 12, display the following message. "Good morning xxxx! You did not provide middle and last name." If only the first name is provided and the current time is greater than er equal to 12 display the following message. "Good day xxxx! You did not provide middle and last sme." If the first same as well as the last name is provided and the current time is less than 12, display the following message, "Good moming xxx xxx! You did not provide middle samo". 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 If all three sames are provided and the current time is less than 12. display the following message. "Good moming xxx xxx xxx! Your middle name is very unique." If all threesomes are provided and the current time is greater than or equal to 12display the following message. "Good day XXX XXX XXX! You 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
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