<title><br/> <?php<br/> echo "My calculator"; <br/>? ><br/></title>
My calculator
$num 1 = $_post[' num1 ');
$num 2 =$_request[' num2 '];
$run = $_request[' run '];
Switch ($run)
{
Case ' + ':p rint ("The sum of two numbers is:". $num 1+ $num 2)); break;
Case '-':p rint ("The difference between two numbers is:". $num 1-$num 2));
Case ' * ':p rint ("The product of two numbers is:". $num 1* $num 2)); break;
Case '/':p rint ("The sum of two numbers is:". $num 1/$num 2)); break;
}
?>
This article is from the "iteamsky-Yang Bo technology Space" blog
http://www.bkjia.com/PHPjc/478672.html www.bkjia.com true http://www.bkjia.com/PHPjc/478672.html techarticle HTML head title? php echo My calculator;?/title/head script Type=text/javascript function Onclick () {var num1 = Document.g Etelementbyid (NUM1). value; var num2 = Document.getel ...