请问 <form action="search.php" method="post">
<select name="cname" size=10.
<option>Cappuccino
<option>frappuccino coffee
然后在search.php得到选中元素的值怎么得到阿
<select name="cname" size=10.
<option>Cappuccino
<option>frappuccino coffee
然后在search.php得到选中元素的值怎么得到阿
<html>
<body>
<form action="61.php" method="post">
<select name="cname" >
<option>Cappuccino
<option>frappuccino coffee </select>
<input type="submit" name="sub" value="submit">
</form>
</body>
</html>
PHP中这样取就OK:
<?php
$ab=$_REQUEST["cname"];
echo $ab;
?>
学习了。
<html>
<body>
<form action="61.php" method="post">
<select name="cname" >
<option value='Cappuccino'>Cappuccino
<option value='frappuccino coffee '>frappuccino coffee </select>
<input type="submit" name="sub" value="submit">
</form>
</body>
</html>再得到值