I completely appreciate this has been asked a million times before, but I have not got a single code example to work, my code is as follows:
<?php
$cat_array=get_results("call sp_teams($club_id);");
foreach ($cat_array as $thiscat) {
echo "<option value='".$thiscat['team_id']."'";
echo ' selected="selected">'.$thiscat['team_name']."</option>";}?>
The drop down functions correctly and I am able to display the team_id field as text using:
echo "combo box data is ". $_GET['team_id'];
However I have not found a way of retaining the drop down value in the drop down box, the selected="selected" statement appears to do nothing.
Any ideas?