Quote:
Originally Posted by cinq
Is this script tied in with vb ?
|
nope
Quote:
Originally Posted by Colin F
call the variable $actions and not $actions[].
You'd have to call it $actions[] if you allowed multiple selections.
|
tried it like so
PHP Code:
$number1 = $_GET[number_one];
$number2 = $_GET[number_two];
$action[] = $_GET[actions];
if($action[0] == "+"){ $sum = $number1 + $number2 ;}
if($action[1] == "-"){ $sum = $number1 - $number2 ;}
if($action[2] == "/"){ $sum = $number1 / $number2 ;}
if($action[3] == "*"){ $sum = $number1 * $number2 ;}
echo $sum;
changed the html as well... i removed the "value" on the options.