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

  1. Create an HTML form that accepts the user's first name, last name, an email id and a web address of CSN.
  2. Create a PHP response page that checks if the email entered by the user is a .edu account.
  3. 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
  4. 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);
  5. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!