Hi there,
I have an array that populates a drop down menu. The user makes his choice and submits the form moving on to the next page.
The problem is that no matter what choice the user makes, the form always passes the last choice in the drop down menu from the previous page.
The code I'm using is below. Any ideas of how to fix this so the choice made by the user is the info that's passed to the next page?
Thanks very much,
Rick
<select name="GamesInProgress">
<?
/****************************************
This portion of the script sorts and loops through the array to populate the drop down menu
****************************************/
sort($PlayArray);
foreach ($PlayArray as $PlayInProgress) {
echo '<option>' . $PlayInProgress . '</option>';
}
$ContinuedGame = Array();
$ContinuedGame = explode ("-",$PlayInProgress);
$Category=trim($ContinuedGame[0]);
$Topic=trim($ContinuedGame[1]);
?>
</select>