$_POST problem
Posted: Sat Feb 26, 2011 3:07 pm
I wrote this code ;
<?php
$one = $_POST['one'];
$two= $_POST['one'];
$op= $_POST['sum'];
if($op=="sum")
{
print $one;
print $two;
print $one+$two;
}
?>
my problem is when i started the browser, $one and $two shown normally, but $one+$two shown zero,0
why is it so? anyone to help me?
<?php
$one = $_POST['one'];
$two= $_POST['one'];
$op= $_POST['sum'];
if($op=="sum")
{
print $one;
print $two;
print $one+$two;
}
?>
my problem is when i started the browser, $one and $two shown normally, but $one+$two shown zero,0
why is it so? anyone to help me?