Gil
08-13-2002, 01:38 PM
Hi!
The form below is working on my local server but not online where it produces the following error:
Invalid argument(s) passed to pow() in /etc/etc.
If I would first give $aaa $bbb and $ccc a value, the error dessapears but the pow calculation uses the variables I made up instead of the one submitted by the form.
CCC should be 1+choise1^3 = 3^3 = 3x3x3=27
<form action="rekentest.php">
<select name="choise1">
<option value="2">2
</select>
<select name="choise2">
<option value="3">3
</select>
<p><input type="submit">
<?php
$aaa= (1 + $choise1);
$bbb = pow($aaa,$choise2);
$ccc = round($aaa* $bbb);
echo "<p>$ccc";
?>
</form>
Offline there's no problem.
Any suggestions?
Gil
The form below is working on my local server but not online where it produces the following error:
Invalid argument(s) passed to pow() in /etc/etc.
If I would first give $aaa $bbb and $ccc a value, the error dessapears but the pow calculation uses the variables I made up instead of the one submitted by the form.
CCC should be 1+choise1^3 = 3^3 = 3x3x3=27
<form action="rekentest.php">
<select name="choise1">
<option value="2">2
</select>
<select name="choise2">
<option value="3">3
</select>
<p><input type="submit">
<?php
$aaa= (1 + $choise1);
$bbb = pow($aaa,$choise2);
$ccc = round($aaa* $bbb);
echo "<p>$ccc";
?>
</form>
Offline there's no problem.
Any suggestions?
Gil