1. Home
  2. Computing & Technology
  3. PHP / MySQL

Convert Temperature

By Angela Bradley, About.com

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.

Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. Step By Steps
  5. Free PHP Script - Convert Temperature - PHP Convert Temperature

©2009 About.com, a part of The New York Times Company.

All rights reserved.