name="class_1"
id="class_1">
<?php
$sql=mysql_query("select
class_1
from
class1")
while($rs=mysql_fetch_array($sql)){
?>
<option
value="<?php
echo
$rs["class_1"]?>"><?php
echo
$rs["class_1"]?></option>
<?php
}?>
</select>
<select
name="class_2"
id="class_2">
<?php
$sql=mysql_query("select
class_2
from
class2")
while($rs=mysql_fetch_array($sql)){
?>
<option
value="<?php
echo
$rs["class_2"]?>"><?php
echo
$rs["class_2"]?></option>
<?php
}?>
</select>
<select
name="class_3"
id="class_3">
<?php
$sql=mysql_query("select
class_3
from
class3")
while($rs=mysql_fetch_array($sql)){
?>
<option
value="<?php
echo
$rs["class_3"]?>"><?php
echo
$rs["class_3"]?></option>
<?php
}?>
</select>
<select name="xingming"><option value="<?php echo $row['name']?>" ><?php echo $row['name']?></option>
</select >
应该这么写才能$_POST['xingming']到值
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)