<p class="listintro"><span id="sp"></span>动态|文本框</p> <p style="width:340px;height:285px;float:left;"> <script language="javascript"><br/>var row = 0;<br/><br/>function insertElement() {<br/> var nod=document.createElement("span");<br/> document.form1.insertBefore(nod);<br/> nod.innerHTML="<br>row"+row+"<input type=text name=txt["+row+"][]><input type=text name=txt["+row+"][]>"<br/> row = row+1<br/>}<br/></script><br><br></p> <br><br>动态增加文本框<br><br><form name="form1" action="<?" echo> method=POST><br><input type="submit" value="提交"><input type="button" value="增加" onclick="insertElement()"><br><br> </form> <br><div class="code" style="position:relative; padding:0px; margin:0px;"><pre><br><br>print_r($HTTP_POST_VARS);<br>?><br></pre><div class="contentsignin">登入後複製</div></div> <br><br><br> <center> </center> <p style="width:100%;text-align:center;margin:10px 0"> <br> <br> </p> <p style="width:100%;text-align:center;margin:10px 0"> </p> <p class="clear"></p>