I am wrestling with my code for a list box, here is the code:
<form action=\"set_rosters.php\" method=\"post\">
<select name=\"playerID\" size=18 >
<option value=\"\">Select a Player</option>";
for ($i=0; $i<$number2; $i++) {
$playerID= mysql_result($result2,$i,"PlayerID");
$playerName = mysql_result($result2,$i,"PlayerName");
$nflTeamName = mysql_result($result2,$i,"NFLTeam.ShortName");
print "<option value=\"$playerID\" >$playerID, $playerName, $nflTeamName</option>";
}
$playerID, $playerName, $nflTeamName shows up in the ListBox, but it goes to insert the row, only $playerID is entered - do I need to change the value=\"$playerID\ portion? if so, how? Or do I need to parse the commas somehow??
Thank you.