PHP Classes

File: fwphp/glomodul/z_examples/AJAX_form_valid/ajax/1006_Ajax_Upd_Frm_Fahrenheit_Celsius.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/AJAX_form_valid/ajax/1006_Ajax_Upd_Frm_Fahrenheit_Celsius.php   Download  
File: fwphp/glomodul/z_examples/AJAX_form_valid/ajax/1006_Ajax_Upd_Frm_Fahrenheit_Celsius.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of fwphp/glomodul/z_examples/AJAX_form_valid/ajax/1006_Ajax_Upd_Frm_Fahrenheit_Celsius.php
Date: 1 year ago
Size: 187 bytes
 

Contents

Class file image Download
<?php

$fahrenheit
= $_POST['data']; //This recieves the data passed from JavaScript

$celsius = (($fahrenheit - 32) * 5) / 9;
$celsius = number_format($celsius, 7);

print
$celsius;

?>