<td class='tablerow'><strong>所属城市</strong></td>
<td class='tablerow'><input name="cityid" id="KeyWords1" style="width:22% " value=""> </td>
一个下拉菜单:</select>
<select name="city" onclick="document.all.cityid.value=this.value">
<option selected value="">==选择城市==</option>
</select>
这样每问题可以提交到表单,但是表单无法写入数据库.
下面可以写入数据库了,下拉菜单的值又无法提交到表单了,自己整了几天实在没辙了,快救救我吧!
<td class='tablerow'><strong>所属城市</strong></td>
<td class='tablerow'><input name='channel[cityid]' id="KeyWords1" style="width:22% " value=""> </td>
一个下拉菜单:</select>
<select name="city" onclick="document.all.'channel[cityid].value=this.value">
<option selected value="">==选择城市==</option>
</select>
<td class='tablerow'><input name="cityid" id="KeyWords1" style="width:22% " value=""> </td>
一个下拉菜单:</select>
<select name="city" onclick="document.all.cityid.value=this.value">
<option selected value="">==选择城市==</option>
</select>
这样每问题可以提交到表单,但是表单无法写入数据库.
下面可以写入数据库了,下拉菜单的值又无法提交到表单了,自己整了几天实在没辙了,快救救我吧!
<td class='tablerow'><strong>所属城市</strong></td>
<td class='tablerow'><input name='channel[cityid]' id="KeyWords1" style="width:22% " value=""> </td>
一个下拉菜单:</select>
<select name="city" onclick="document.all.'channel[cityid].value=this.value">
<option selected value="">==选择城市==</option>
</select>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货