Answered step by step
Verified Expert Solution
Link Copied!

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

  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions