Home  >  Article  >  Backend Development  >  新手求问,关于js登录验证有关问题

新手求问,关于js登录验证有关问题

WBOY
WBOYOriginal
2016-06-13 13:38:08891browse

新手求问,关于js登录验证问题

PHP code




    
 新手求问,关于js登录验证有关问题
用 户
密 码
版本信息 留言管理系统 2012 v1.0

以上是部分代码,网上找了很多帖子,但是依然没有效果,不明白为什么不执行,求教

------解决方案--------------------
function logincheck(){
if (loginform.user.value==""){
alert ("请输入用户名");
loginform.user.focus();
return false;
}
if (loginform.pw.value==""){
alert ("请输入用户名");
loginform.pw.focus();
return false;
}
}

------解决方案--------------------
if (loginform.user.value=""){

判断 == ?
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn