下面是我目前拥有的代码,它正在努力传递week_num
. 我session_start()
用来在页面之间传递我的变量。
print'<form action="changeplayer_2.php" method="post">';
print"<select name='Week_select'> <br>";
while ($wrow=mysql_fetch_array($wresult)){
print '<option value="'.$wrow['week_num'].'">'.'week '.$wrow['week_num'].'
'.$wrow['week_name'].'</option><br>\n';
}
print "</select><br><br>";
我很好奇的是我是否也可以week_name
转到下一页。请记住,我仍然是初学者,所以如果您能告诉我有关修复工作的原因/方式的任何信息,我将不胜感激。
我努力了
print '<option value="'.$wrow['week_num,week_name'].'">'.'week '.$wrow['week_num'].' '.$wrow['week_name'].'</option><br>\n';
和
print '<option value="'.$wrow['week_num','week_name'].'">'.'week '.$wrow['week_num'].' '.$wrow['week_name'].'</option><br>\n';
两者都会产生错误