1. Computing

Convert Temperature

By , About.com Guide

4 of 4

The Script Explained
First the script collects data from user and then submits this information to itself. When the page reloads after hitting submit, the PHP at the bottom now has variables to work with and can execute.

Our convert temperature PHP consists of four IF statements, one for each of the unit measurements available on our form. The PHP then makes the appropriate conversions based on the users choice and outputs a table. The complete code for this script can be downloaded here.

  1. About.com
  2. Computing
  3. PHP / MySQL
  4. Step By Steps
  5. Free PHP Script - Convert Temperature - PHP Convert Temperature

©2013 About.com. All rights reserved.