Hey,
I'm using php to build a form with two dropdown menus as part of an rpg fight system for the phpBB Forum.
The code for the form is:
<?php echo "<form action="calcmove.php" method="post" name="move" id="move">";
echo "Move 1<br>";
echo "<select name='movea'>";
for ($i = 0; $i < count($item); $i++)
echo "<option value='{$item[$i]}'>{$item[$i]}</option>";
echo "</select>"; ?>
<br>
<br>
Move 2 <br>
<?php echo "<select name='moveb'>";
for ($i = 0; $i < count($item); $i++)
echo "<option value='{$item[$i]}'>{$item[$i]}</option>";
echo "</select>";
echo "<input type="submit" name="Submit" value="Fight">";
echo "</form>";
?>
The form displays just fine and forwards me to calcmove.php just as it should but the code...
$move1 = $POST["movea"];
$move2 = $POST["moveb"];
echo "<br>$move1";
echo "<br>$move2";
... in the calcmove.php file doesnt get the two variables.
Any ideas what i'm doing wrong here?