## 无法显示select传到的全部的值,只显示一个值
代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?php
include("conn.php");
$result=mysql_query("SELECT stu.name,stu.id FROM stu LEFT OUTER JOIN grade ON(stu.id=grade.id) WHERE grade.chinese is null ORDER BY stu.id ASC");
$row=mysql_fetch_array($result)
?>
<h3>增加学生信息</h3>
<form action="action.php ? action=addcj" method="post">
<table><input type="hidden" name="id" value="<?php echo $row['id']?>"? >
<?php echo $stu['id'];?>
<tr>姓名
<select name="id">
<?php while($row=mysql_fetch_array($result))
{?>
<option value="<?php echo $row['id'];?>" >
<?php echo $row['name'];?> </option><?}
?>
</select>
</tr>
<td>语文</td>
<td><input type="text" name="chinese"></td>
</tr>
<tr>
<td>数学</td>
<td><input type="text" name="math"></td>
</tr>
<tr>
<td>英语</td>
<td><input type="text" name="english"></td>
</tr>
<tr>
<td><a href="index.php"> 返回 </a></td>
<td><input type="submit" value="添加"></td>
<td><input type="reset" value="重置"></td>
</tr>
<table>
</form>
</body>
</html>