Hello,
I'm using nusphere phped to develop php files. I have written
to files named a.php and b.php.
a.php:
------
<html>
<body>
please enter two numbers in the form.<br>
<form action = "b.php" method = "post">
Wert 1: <input name = "w1"><p>
Wert 2: <input name = "w2"><p>
<input type = "submit">
<input type = "reset">
</form>
</body>
</html>
b.php:
------
<html>
<body>
<?php
$erg = $w1 + $w2;
echo "sum: $erg";
?>
</body>
</html>
If I enter numbers in the form, the result (erg) is always 0.
Is it possible that the post method doesnt't work (I have the feeling that
w1 and w2 are local variables)?
Do I have to change settings in Nuspere phped?
Thanks a lot,
Mike