Question: I need help with a .PHP code MPG Calculator On Elvis, in your /home/kilroy/public_html/webdev/Projects/albus folder, create a subfolder named 4-MPG In this folder, create a

I need help with a .PHP code  I need help with a .PHP code MPG Calculator On Elvis,

MPG Calculator On Elvis, in your /home/kilroy/public_html/webdev/Projects/albus folder, create a subfolder named 4-MPG In this folder, create a file named mpg.php, which contains a self-executing PHP form as described below The form must include three text boxes for input, named "distance", "gallons and "tanksize", and a "Submit" button When the user submits the information, the PHP script should print the following: 1. the MPG that corresponds to that number of gallons used for that distance, 2. the range the car can drive on one tank, given the size of the fuel tank and the MPG just calculated, and 3. the form again (so another calculation can be run) You may find it useful to look at the "firstname.php" file on Elvis in kilroy/public _html/webdev/Wk7.1-php2, and to look at the "allnames.php" file in kilroy/public_html/webdev/Wk7.2-phpdebug/MW,TR; . (Note that to read the text of a PHP file, you will have to log on to Elvis. If you try to do it with a web browser, the web server will run the code and show you the output.) Don't forget to 1. include the line at the bottom of your page with your name, and the HTML and CSS validation links, 2. actually click the HTML and CSS validation links to ensure your page is correct 3. add this to your portfolio page, 4. log on to Elvis and run the command: /home/kilroy/WEBDEV/Grading/fix _perms

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!