Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create an HTML form that accepts the user's first name, last name, an email id and a web address of CSN. Create a PHP response
- Create an HTML form that accepts the user's first name, last name, an email id and a web address of CSN.
- Create a PHP response page that checks if the email entered by the user is a .edu account.
- If the email entered by the user does not have a .edu account
- use a PHP function to trim to remove extra spaces from the first and last names.
- use a PHP function to change the first and last name to all lower case.
- use PHP function to make sure that the length of the first name and last name is more than 1 if not then display the message asking the user to enter their first and last name again.
- If the previous three conditions are satisfied then combine the first and the last name with a . in the middle and then add myschool.edu and then display the new email id to the user like this: example: Your new email id is jane.doe@myschool.edu
- In the php response page
- edit the following code to specify that $total is a floating point number with two decimal places after the decimal point. printf ("Total amount of order is ___", $total);
- In the php response page use preg_match function to check if the web address of CSN contains "https://" then display the message "Thank you for sharing the web address", if not then display the message, " Incorrect Web address"
Just need one html page and one php page please
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