JS user name and password verification program

Source: Internet
Author: User

This article provides a sample user name and password for this client-side JavaScript user input to improve the user experience Oh, this is what I found on other websites.

function check (form)
{
if (form.ftpuser.value== "")
{
Alert ("Please enter FTP username!");
return false;
}
if (form.ftppass.value== "")
{
Alert ("Please enter FTP password!");
return false;
}
if (form.randnum.value== "")
{
Alert ("Please enter the verification code!");
return false;
}
return true;
}
-->
</script>

HTML code

FTP account <input name= "Ftpuser" type= "text" class= "Formstyle" id= "Ftpuser" size= ""
&nbsp; FTP password <input name= "ftppass" type= "password" class= "Formstyle" id= "Ftppass" size= ""
&nbsp; Verification Code < Input name= "Randnum" type= "text" class= "Formstyle1" id= "Randnum" size= "8" maxlength= "4" >&nbsp; <input name= "Backpage" type= "hidden" value= "/vhost/" Index.net?type=index "><input name=" Submit "type=" Submit "class=" Buttonyinse "value=" Landing "style=" Cursor:hand ";" "

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.