CAN YOU COVERT THIS CODE TO PHP ???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<HTML>
<Head> <CENTER>MATHEMATICAL OPERATION </HEAD>
<body>
<SCRIPT><!--
function go(){
document.number.num1.value = ("0");
document.number2.numb4.value = ("");
}
var numb1 = document.number.num1.value;
var numb2 = document.number.num2.value;
function add(){
document.getElementById("num4").innerHTML = parseInt(document.number.num1.value) + parseInt(document.number.num2.value);
}
function mult(){
document.getElementById("num4").innerHTML= (document.number.num1.value * document.number.num2.value) ;
}
function sub(){
document.getElementById("num4").innerHTML = (document.number.num1.value - document.number.num2.value) ;
}
</SCRIPT>
<FORM NAME="number" >
Number 1<INPUT TYPE="text" Value="" NAME="num1">
<BR>
Number 2<INPUT TYPE="text" Value="" NAME="num2">
</FORM>
<FORM NAME="number2" >
RESULT :
<br><label id="num4"></label>
</FORM>
</HEAD>
<body>
<FORM NAME="MyForm" >
<INPUT TYPE="button" NAME="none" Value=" ADD " OnClick="add( )">
<INPUT TYPE="button" NAME="none5" Value=" SUBTRACT " OnClick="sub( )">
<INPUT TYPE="button" NAME="none3" Value=" MULTIPLY " OnClick="mult( )">
</FORM>
</body>


      

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux