I have multiple form fields passing properly, except this one:
<select name="Day1Equip1" tabindex="84" class="small" >
<option value="" ></option>
<?PHP include ("include/query_get_equip.php"); ?>
</select>
//where the include file contains
$query3 = "SELECT * FROM EquipmentList ORDER BY Model";
$result3 = @mysql_query($query3);
while($line = mysql_fetch_array($result3))
{
$Model = $line["Model"];
$Item = $line["ItemNum"];
echo "<OPTION VALUE='$Model #$Item' >$Model #$Item</OPTION>";
}
When I view the HTML source, the option values are correct.
For example "TEST #1", "TEST #2", "TEST #99" etc.
Upon posting the form with TEST #99 selected, javascript alert states $Day1Equip1 value is undefined while the php value returns null (i.e. '')
$Day1Equip1 = $_POST['Day1Equip1'] ;
print "$Day1Equip1"; //returns null value
I have other select boxes with similar code, and their values pass properly.
I cannot figure out the problem with this one.
Any clues?