<form action="send_simpleform.php" method="POST">
<strong>NO. :<input type="text" name="user" size="1"/></p> </strong>  <center>
<input type=checkbox name=mainMenu1 id="00" price="118" onClick="document.all.zoom1[0].disabled=document.all.zoom1[1].disabled=document.all.zoom1[2].disabled=this.checked==true?false:true;">
<label for="00">    Burning T-bone Niupa  $118(no red wine)</label><p><input type=radio name=zoom1 value="$118" id="1" disabled> <label for="1" > x1</label>
<input type=radio name=zoom1 value="$236" id="2" disabled> <label for="2" > x2</label>
<input type=radio name=zoom1 value="$354" id="3" disabled> <label for="3" > x3</label>
<input type=checkbox name=mainMenu2 id="01" price="88" onClick="document.all.zoom2[0].disabled=document.all.zoom2[1].disabled=document.all.zoom2[2].disabled=this.checked==true?false:true;">
<label for="01"> Cheese-baked lobster scallops  $88 </label>  <p> 
<input type=radio name=zoom2 value="$88" id="4" disabled><label for="4"> x1</label>
<input type=radio name=zoom2 value="$176" id="5" disabled><label for="5"> x2</label>
<input type=radio name=zoom2 value="$264" id="6" disabled><label for="6"> x3</label><br>
<hr><p>
用php读取checkbox和ratio 反馈点餐的情况 刚学php 麻烦高手教教

解决方案 »

  1.   

    我这样读不到
    if(!empty($_POST["zoom1"])){
    echo "<u1>";
    foreach ($_POST["zoom1"] as $value) {
    echo "<li> $value<li/>";
      

  2.   

    此问题已解决,请参考 http://topic.csdn.net/u/20080307/17/87b63f11-0578-4942-85ed-6fcc00efd30a.html
      

  3.   

    <input type=radio name=zoom1[] value="$118" id="1" disabled> <label for="1" > x1 </label> 
    <input type=radio name=zoom1[] value="$236" id="2" disabled> <label for="2" > x2 </label> 
    <input type=radio name=zoom1[] value="$354" id="3" disabled> <label for="3" > x3 </label> 
      

  4.   

    你那个不行 用了之后我的复选框选中了 单选框选不了
    input type=checkbox name=mainMenu1 id="00" price="118" onClick="document.all.zoom1[0].disabled=document.all.zoom1[1].disabled=document.all.zoom1[2].disabled=this.checked==true?false:true;"> 
      

  5.   

    看这里
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>无标题文档</title>
    </head><body>
    <form action="?act=go" method="post">
    <input name='a' type="radio" value="r1" />
    <input name='a' type="radio" value="r2" />
    <input name='a' type="radio" value="r3" />
    <input name="b[]" type="checkbox" value="c1" />
    <input name="b[]" type="checkbox" value="c2" />
    <input name="b[]" type="checkbox" value="c3" />
    <input type="submit" value='go' />
    </form>
    <?phpvar_dump($_POST);
    ?></body>
    </html>
      

  6.   

    按你那个就成这样了,
    Welcome NO. 09!Your product choices are:
    array(7) { ["user"]=> string(2) "09" ["mainMenu1"]=> string(2) "on" ["zoom1"]=> string(4) "$118" ["mainMenu2"]=> string(2) "on" ["zoom2"]=> string(4) "$176" ["mainMenu3"]=> string(2) "on" ["zoom3"]=> string(3) "$25" }