Question: PHP Can't get my code to work, what am I doing wrong? Temperature Conversion Table Enter a starting value in degrees Fahrenheit and an increment

PHP

Can't get my code to work, what am I doing wrong?

Temperature Conversion Table

Enter a starting value in degrees Fahrenheit and an increment value.

Enter an value in degrees Fahrenheit Convert in increment in 5 degrees Convert in increment in 10 degrees

//get he increament value and temperature from post request $degincrement = $_POST['increment']; $temperature = $_POST['temperature']

//html table echo "

"; // Create Table header echo ""; echo ""; echo "";

// For loop to increament the temperature and print the table row for($temp_in_fahrenheit = $temperature; $temp_in_fahrenheit "; //calculate temperature in celcius $temp_in_celcius = ($temp_in_fahrenheit - 32) / 1.8; //tempereature in fahrnheit echo "

"; //temperature in celcius echo ""; echo ""; }

echo "

Temperature(F)"; echo "Temperature(C)
" . $i . "" . $temp_in_celcius . "
"; exit(); } ?>

Here is what the out put should look like.

PHP Can't get my code to work, what am I doing wrong?

Temperature Conversion Table Enter a starting value in degrees Fahrenheit and an

Temperature Conversion Table Enter a starting value in degrees Fahrenheit and an increment value 20 Enter an value in degrees Fahrenheit. Convert in increments in 5 degrees Convert in increments in 10 degrees Submit

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!