$_POST Value not being passed - SOLVED
Posted: Tue May 08, 2007 2:58 pm
The code from my selection form is
The form fills correctly with values and after I select the value I want and go to embryoedit.php
The code from embryoedit.php is
Var_Dump() shows $sire_to_use to be an empty strings.
Thank you
Code: Select all
if (mysql_num_rows($result1) > 0) {
echo "<form action='embryoedit.php' method=post>";
echo "<select name='sirelist' size='10'>";
while ($row = mysql_fetch_array($result1)) {
extract($row);
echo "<option value=\"".htmlspecialchars($amimalid)."\">$animalid";
}
echo "</select>";
echo "<input type=submit value=submit>";
echo "</form>";
}
else
{
$nothingfound="No Inventory Listed";
echo "<h1 align='center'>$nothingfound</h1>";
}The code from embryoedit.php is
Code: Select all
$sire_to_use = $_POST['sirelist'];Thank you