Online real-time open web and FTP source program [Turn]

Source: Internet
Author: User
Tags ftp
Programs are implemented using FSO+SERV-U (2.x version):
1. Registration Document Index.htm
<title> Ningbo Branch Woo Net--Personal web application </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<script language= "Javascript" >
function Checkifenglish (String)
{
var letters = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz1234567890-";
var i;
var C;
if (String.charat (0) = = '-')
return false;
if (String.charat (string.length-1) = = '-')
return false;
for (i = 0; i < string.length i + +)
{
c = String.charat (i);
if (Letters.indexof (c) < 0)
return false;
}
return true;
}
function Checksubmit () {
var emailreg =/^[_a-z0-9]+@ ([_a-z0-9]+.) +[a-z0-9]{2,3}$/;
if (Document.form.name.value = = "") {
Alert ("Please enter the username you want to register!") ");
Document.form.name.focus ();
return false;
}
if (! Checkifenglish (Document.form.name.value)) {
Alert ("User name cannot enter Chinese and illegal characters!") ");
Document.form.name.focus ();
return false;
}
if ((Document.form.pass.value = "") && (Document.form.rpass.value = = "")) {
Alert ("Password cannot be blank!") ");
Document.form.pass.focus ();
Document.form.rpass.focus ();
return false;
}
if ((Document.form.pass.value)!= (Document.form.rpass.value)) {
Alert (' Two password input is not the same! '');
Document.form.pass.focus ();
Document.form.rpass.focus ();
return false;
}
if (Document.form.email.value = = "") {
Alert ("Please enter your email! ");
Document.form.email.focus ();
return false;
}
if (! Emailreg.test (Document.form.email.value)) && (document.form.email.value!= ")") {
Alert (' Email format is not correct! '');
Document.form.email.focus ();
return false;
}
return true;
}

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.