<br><div class="msgheader"> <div class="right"><span style="CURSOR: pointer" onclick="copycode(getid('phpcode29'));"><u>复主代码</u></span></div>代码如下:</div> <div class="msgborder" id="phpcode29"> <br><html> <br><머리> <br><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <br></head> <br><본문> <br><?php <br />echo ' <br /><form name="DDForm" method="GET" action=""> <br><div style="position:relative;"> <br><span style="margin-left:100px;width:18px;overflow:hidden;"> <br><select style="width:180px;margin-left:-100px" onchange="this.parentNode.nextSibling.value=this.value" name="hh"> <br><option value="汽车">汽车 </option> <br><option value="화车"> 화차 </option> <br><옵션 값="飞机"> 飞机 </option> <br></select> <br></span><input name="box" style="width:160px;position:absolute;left:0px;"> <br><input value="提交" name="submit" type="submit"/> <br></div> <br></form>'; <br>$aa=$_GET['hh']."111"; // 다운로드 선택 <br>$bb=$_GET['box']."222"; // 输入框的值 <br>echo $aa; <br>에코 "</br>"; <br>에코 $bb; <br>// 要获得可输入下拉菜单的值,只要获得输入框的值即可。 <br>?> <br></body> <br></html><br> </div> <br><br>要获得可输入下拉菜单的值,只要获得输入框的值即可。 <br><br>< ;/스팬> ;<input name="box" style="width:160px;position:absolute;left:0px;"> <br><br>这行要在一行中,不能写成 <br><br></span> <br><br><input name="box" style="width:160px;position:absolute;left:0px;"> <br><br>换行了の后则下拉菜单的值不能显示는 输入框中입니다.单值。