I am writing a little site for me and my friends to be able to pick football games and keep standings of who is better at picking and such.
I am trying to submit the picks right now but the dropdown box where the user picks the home or away team will have a variable name.
[code=php] while($row = mysql_fetch_array($result)){
echo “<tr>”;
echo “<td>”;
echo $row[‘date’];
echo”</td>”;
echo “<td>”;
echo $row[‘time’];
echo”</td>”;
echo “<td>”;
echo $row[‘away_team’];
echo”</td>”;
echo”<td>”;
echo $row[‘spread’];
echo”</td>”;
echo “<td>”;
echo $row[‘home_team’];
echo”</td>”;
echo”<td>”;
echo”<select name='”.$row[‘gameid’].”‘>
<option value=’home’>Home</option>
<option value=’away’>Away</option>
</select>”;
echo”</td>”;
echo”</tr>”;
$i++;
}
Does anyone have any ideas how I will work this into getting that data?