<html>
<script language="javascript">
function checklogin()
{
if((login.nickname.value!="")&&(login.password.value!=""))
{
return true;
}
else
{
alert("不能为空!")
return false
}
}
</script>
<body>
<center><h2>haha</h2>
<form action="/ide/data/search1.php" method="post" name="login"
onsubmit="return checklogin()">
呢称:<input name="nickname" size=10><br>
密码:<input name="password" type="password" size=10><br>
<input name="submit" type="submit" value="登陆">
</form>
<hr>
<font color="#3300cc">首次登陆时<br>将自动注册</font>
</center>
</body>
</html>
<script language="javascript">
function checklogin()
{
if((login.nickname.value!="")&&(login.password.value!=""))
{
return true;
}
else
{
alert("不能为空!")
return false
}
}
</script>
<body>
<center><h2>haha</h2>
<form action="/ide/data/search1.php" method="post" name="login"
onsubmit="return checklogin()">
呢称:<input name="nickname" size=10><br>
密码:<input name="password" type="password" size=10><br>
<input name="submit" type="submit" value="登陆">
</form>
<hr>
<font color="#3300cc">首次登陆时<br>将自动注册</font>
</center>
</body>
</html>
解决方案 »
- 求高手帮忙看看,这段代码有什么问题
- 关于Openoffice把doc、txt、ppt、xls转换成pdf格式,php环境
- 从数据库取出图片的路径,怎么给<input type="file" name="imgurl" value="{$coupons_url}">赋值
- php 怎么能到规定的时间强制刷新页面?
- 谁有php.ini的中文版,说明
- linux(MAC,Ubuntu)PHP安装SOAP扩展
- PHP是否有网站全局变量?
- 求救:关于用PHP发送邮件的问题
- php作为接口返回json数据格式问题
- php操作mysql的脚本-有问题,数据库列表不能从文件里面读?请大牛帮助啊。怎么调试都不行?
- 为什么用chdir()不好用了,是服务器把这个函数给屏蔽了?如果要看怎么做?
- 一个有关limit的问题:
你在登陆按钮哪里应该改一下!
<input name="submit" type="submit" value="登陆" onclick="return checklogin()"
>