<td><center>欢迎你~<% out.print(session.getAttribute("number").toString()) ;%></center></td>
<p class="qq"> 修改你的个人资料</p>
<center><td colspan="2" class="qq"><form name="form11" method="post" action="change.jsp">
<input type="submit" name="button" id="button" value="提交">
<input type="reset" name="button2" id="button2" value="重置"></center>
</td>
<table width="450" height="100" border="1" align="center">
<tr>
<td class="qq">你的id:</td>
<td>
*不可修改</td>
</tr>
<tr>
<td width="46" class="qq">昵称:</td>
<td width="188">
<input type="text" name="newname" id="newname" >
*必填项 </td>
</tr>
<tr>
<td class="qq">密码:</td>
<td>
<label for="textfield10"></label>
<input type="password" name="passw" >
*必填项</td>
</tr>
<tr>
<td class="qq"><p>年龄:</p></td>
<td>
<input type="text" name="age" >
*必填项 </td>
</tr>
<tr>
<td class="qq">性别:boy&girl</td>
<td>
<input type="text" name="sex" >
*必填项 </td>
</tr>
<tr>
<td class="qq">地区:</td>
<td>
<input type="text" name="area">
*必填项</td>
</tr>
<tr>
<td class="qq">工作:</td>
<td>
<input type="text" name="job" >
</td>
</tr>
<tr>
<td class="qq">薪酬:</td>
<td>
<input type="text" name="salary" >
</td>
</tr>
<tr>
<td class="qq">身高:</td>
<td>
<input type="text" name="height" >
</td>
</tr>
<tr>
<td class="qq">爱好:</td>
<td>
<input type="text" name="habit">
</td>
</tr>
<tr>
<td class="qq">个人简介:</td>
<td>
<textarea name="introdction" id="introduction"></textarea>
</form></td>
</tr>
</table>
<center>
<form name="form1" method="post" action="person.jsp">
<input type="submit" name="button3" id="button3" value="返回">
</form>
</center>
</body>
</html> function CheckForm()
{
if (!document.getElementById('newname').value) {
alert("请输入...");
document.getElementById('newname').focus();
return false;
}
return true;
}
<p class="qq"> 修改你的个人资料</p>
<center><td colspan="2" class="qq"><form name="form11" method="post" action="change.jsp">
<input type="submit" name="button" id="button" value="提交">
<input type="reset" name="button2" id="button2" value="重置"></center>
</td>
<table width="450" height="100" border="1" align="center">
<tr>
<td class="qq">你的id:</td>
<td>
*不可修改</td>
</tr>
<tr>
<td width="46" class="qq">昵称:</td>
<td width="188">
<input type="text" name="newname" id="newname" >
*必填项 </td>
</tr>
<tr>
<td class="qq">密码:</td>
<td>
<label for="textfield10"></label>
<input type="password" name="passw" >
*必填项</td>
</tr>
<tr>
<td class="qq"><p>年龄:</p></td>
<td>
<input type="text" name="age" >
*必填项 </td>
</tr>
<tr>
<td class="qq">性别:boy&girl</td>
<td>
<input type="text" name="sex" >
*必填项 </td>
</tr>
<tr>
<td class="qq">地区:</td>
<td>
<input type="text" name="area">
*必填项</td>
</tr>
<tr>
<td class="qq">工作:</td>
<td>
<input type="text" name="job" >
</td>
</tr>
<tr>
<td class="qq">薪酬:</td>
<td>
<input type="text" name="salary" >
</td>
</tr>
<tr>
<td class="qq">身高:</td>
<td>
<input type="text" name="height" >
</td>
</tr>
<tr>
<td class="qq">爱好:</td>
<td>
<input type="text" name="habit">
</td>
</tr>
<tr>
<td class="qq">个人简介:</td>
<td>
<textarea name="introdction" id="introduction"></textarea>
</form></td>
</tr>
</table>
<center>
<form name="form1" method="post" action="person.jsp">
<input type="submit" name="button3" id="button3" value="返回">
</form>
</center>
</body>
</html> function CheckForm()
{
if (!document.getElementById('newname').value) {
alert("请输入...");
document.getElementById('newname').focus();
return false;
}
return true;
}
解决方案 »
- js根据php生成的js变量a=1表示有某种动作的权限,这样安全吗
- js 设置cookie
- vs 下我用后台保存了一个xml文件,但用前台js用绝对路径调用时,提示没有权限
- 急急急急!谁帮我看看这段代码!!!
- JavaScript怎么把一个块定位到浏览器右下角呢
- 很头疼的一个问题,请大家帮帮忙
- 怎么设计使下来菜单使前台页面的部分发生变化?
- Javascript怎么实现下面的序号特效!
- 求一个哪年哪月哪日 哪时哪分 的日期代码,急!~!
- 为什么我在本机上可以实现文件目录的打开,可是用于网上时却不可以的??
- 求助,帮忙把一段javacript代码改造成c语言代码
- EasyUI datagrid分页问题
{
if (!document.getElementById('newname').value) {
alert("请输入...");
document.getElementById('newname').focus();
return false;
}
return true;
}
不对啊,还是没反应 %>_<%
是不是我的位置放错了?
<script type="text/javascript">
function CheckForm()
{
if (!document.getElementById('newname').value) {
alert("请输入...");
document.getElementById('newname').focus();
return false;
}
return true;
}
</script>
<script language="javascript">
var reg=/^\S+$/;
function CheckForm() {
if(!reg.test(document.form11.name.value)){
alert("请输入您姓名!");
document.form11.name.focus();
return false;
}
}
</script>
<script language="javascript">
<!--
function CheckForm()
{
if (document.form11.newname.value.length == 0) {
alert("请输入您姓名!");
document.form11.newname.focus();
return false;
}
return true;
}
-->
</script> <td><center>欢迎你~<% out.print(session.getAttribute("number").toString()) ;%></center></td>
<p class="qq"> 修改你的个人资料</p> <center><td colspan="2" class="qq"><form name="form11" method="post" action="change.jsp" onsubmit="return CheckForm()">
<input type="submit" name="button" id="button" value="提交">
<input type="reset" name="button2" id="button2" value="重置"></center>
</td><table width="450" height="100" border="1" align="center">
<tr>
<td class="qq">你的id:</td>
<td>
*不可修改</td>
</tr>
<tr>
<td width="46" class="qq">昵称:</td>
<td width="188">
<input type="text" name="newname" >
*必填项 </td>
</tr>
<tr>
<td class="qq">密码:</td>
<td>
<label for="textfield10"></label>
<input type="password" name="passw" >
*必填项</td>
</tr>
<tr>
<td class="qq"><p>年龄:</p></td>
<td>
<input type="text" name="age" >
*必填项 </td>
</tr>
<tr>
<td class="qq">性别:boy&girl</td>
<td> <input type="text" name="sex" >
*必填项 </td>
</tr>
<tr>
<td class="qq">地区:</td>
<td>
<input type="text" name="area">
*必填项</td>
</tr>
<tr>
<td class="qq">工作:</td>
<td>
<input type="text" name="job" >
</td>
</tr>
<tr>
<td class="qq">薪酬:</td>
<td>
<input type="text" name="salary" >
</td>
</tr>
<tr>
<td class="qq">身高:</td>
<td>
<input type="text" name="height" >
</td>
</tr>
<tr>
<td class="qq">爱好:</td>
<td>
<input type="text" name="habit">
</td>
</tr>
<tr>
<td class="qq">个人简介:</td>
<td> <textarea name="introdction" id="introduction"></textarea>
</form></td>
</tr>
</table>
<center>
<form name="form1" method="post" action="person.jsp">
<input type="submit" name="button3" id="button3" value="返回">
</form>
</center>
</body>
</html>