Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE SEE ALL STEPS Create an html form that asks the user to enter a number between 1 - 20 and then accepts a number.
PLEASE SEE ALL STEPS
- Create an html form that asks the user to enter a number between 1 - 20 and then accepts a number.
- Create a php document that
- displays the current date and time.
- checks the input by using is_numeric() function if it is not a number then it displays the appropriate message and exits the program.
- if the user did not enter a number 1 - 20 then give the appropriate message and then exit the program.
- if the user has entered a number between 1 - 20 then display the multiples of the number using a for...loopstatement. Example: if the user enter 12, the php page will display something like this: Make sure that the output is displayed in a table.
12 * 1 = 12 12 * 2 = 24 12 * 3 = 36 12 * 4 = 48 12 * 5 = 60 12 * 6 = 72 12 * 7 = 84 12 * 8 = 96 12 * 9 = 108 12 * 10 = 120
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