网页表单提交不能保存到数据库
<tdcolspan="3"class="title">添加教师的信息</td></tr><tr><tdwidth="18%">教师名称:</td><tdwidth="8...
<td colspan="3"class="title">添加教师的信息</td>
</tr>
<tr>
<td width="18%"> 教师名称:</td>
<td width="82%" colspan="2"class="table"><input name="username"type="text" id="username"onfocus='this.className="getfocus";this.gf="1"'onblur='this.className="lostfocus";this.gf="0"'onmouseover='this.className="getfocus"' onmouseout='if(this.gf=="0") this.className="lostfocus"'size="40" maxlength="50" gf="0">
*</td>
</tr>
<tr valign="top">
<td><palign="left"> 性 别:</p></td>
<td colspan="2">
<select name="sex">
<option value="男">男</option>
<option value="女">女</option>
</select> </td>
</tr>
<tr valign="top">
<td> 所属省份:</td>
<td colspan="2">
<selectname="province">
<%
sqlp = "select * from province"
set rsp=szptcrh.execute(sqlp)
dowhile not rsp.eof
response.write"<optionvalue="&rsp("ProvinceName")&""
response.write">"&rsp("provincename")&"</option>"
rsp.movenext
loop
rsp.close
setrsp=nothing
%>
</select> 展开
</tr>
<tr>
<td width="18%"> 教师名称:</td>
<td width="82%" colspan="2"class="table"><input name="username"type="text" id="username"onfocus='this.className="getfocus";this.gf="1"'onblur='this.className="lostfocus";this.gf="0"'onmouseover='this.className="getfocus"' onmouseout='if(this.gf=="0") this.className="lostfocus"'size="40" maxlength="50" gf="0">
*</td>
</tr>
<tr valign="top">
<td><palign="left"> 性 别:</p></td>
<td colspan="2">
<select name="sex">
<option value="男">男</option>
<option value="女">女</option>
</select> </td>
</tr>
<tr valign="top">
<td> 所属省份:</td>
<td colspan="2">
<selectname="province">
<%
sqlp = "select * from province"
set rsp=szptcrh.execute(sqlp)
dowhile not rsp.eof
response.write"<optionvalue="&rsp("ProvinceName")&""
response.write">"&rsp("provincename")&"</option>"
rsp.movenext
loop
rsp.close
setrsp=nothing
%>
</select> 展开
2个回答
2015-06-26
展开全部
这个好像要调用到js及css
我遇到跟你差不多一样的问题,只怪自己不懂java
我遇到跟你差不多一样的问题,只怪自己不懂java
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询