在线实时开通WEB及FTP源程序

2016-01-29 17:45 5 1 收藏

在线实时开通WEB及FTP源程序,在线实时开通WEB及FTP源程序

【 tulaoshi.com - ASP 】

  程序利用FSO+SERV-U(2.x版本)实现:
1、注册文件index.htm
<html
<head
<title宁波科宇网——个人网页申请</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("请输入您要注册的用户名!");
document.form.name.focus();
return false;
}

if (!CheckIfEnglish(document.form.name.value )) {
alert("用户名不能输入中文及非法字符!");
document.form.name.focus();
return false;
}

if ((document.form.pass.value == "")&&(document.form.rpass.value == "")) {
alert("密码不能为空!");
document.form.pass.focus();
document.form.rpass.focus();
return false;
}

if ((document.form.pass.value)!=(document.form.rpass.value)) {
alert (''二次密码输入不一样!'');
document.form.pass.focus();
document.form.rpass.focus();
return false;
}

if (document.form.email.value == "") {
alert("请输入您的Email!");
document.form.email.focus();
return false;
}

if ((!EmailReg.test(document.form.email.value))&&(document.form.email.value!='''')) {
alert (''Email的格式不正确!'');
document.form.email.focus();
return false;
}

return true;
}
</script

<script language="JavaScript"
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// --
</script
</head
<body bgcolor="#FFFFFF" text="#000000" background="crystal.jpg"
<p align="center" </p
<p align="center"<b<font size="6" color="#333333"宁波科宇网——个人网页申请</font</b</p
<p align="center"</p
<table width="65%" border="0" align="center"
<tr
<td
<form name="form" method="post" action="page.asp"
<p<b用户名称:</b
<input type="text" name="name" size="10" class="form"
*

注意:用户名只能由英文字母(a-z、A-Z),数字(0-9)构成,不能有空格。

<b密  码:</b
<input type="password" name="pass" size="10" class="form"
*</p
<p<b确认密码:</b
<input type="password" name="rpass" size="10" class="form"
*(确认上面的密码)</p
<p<b您的MAIL:</b
<input type="text" name="email" size="20" class="form"*(请正确填写)
</p
<p
<input type="submit" name="Submit" value="提交" onClick ="java script:return checkSubmit()"
<input type="reset" name="Submit2" value="重写"


其中*号项目为必填项目!</p
</form>

来源:https://www.tulaoshi.com/n/20160129/1502803.html

延伸阅读
标签: ASP
      '**************************************     ' Name: File / Directory Viewer     ' Description:This Will Display All The     '     Files, File Size and file date of every     ' ...
标签: Web开发
网上已经有很多Web进度条的例子,但是很多都是估算时间,不能正真反应任务的真实进度。我自己结合多线程和ShowModalDialog制做了一个实时进度条,原理很简单:使用线程开始长时间的任务,定义一个Session,当任务进行到不同的阶段改变Session的值,线程开始的同时使用ShowModalDialog打开一个进度条窗口,不断刷新这个窗口获取Session值,...
#includegraphics.h #includemath.h #includedos.h #define pi 3.1415926 #define X(a,b,c) x=a*cos(b*c*pi/180-pi/2)+300; #define Y(a,b,c) y=a*sin(b*c*pi/180-pi/2)+240; #define d(a,b,c) X(a,b,c);Y(a,b,c);line(300,240,x,y) void init() {int i,l,x1,x2,y1,y2; setbkcolor(1); c...
当你看到这个标题的时候肯定回以为是不是作者写错了标题,告诉你没有,学习java语言就是要有创新精神,你只有不断突破前人的你才会有进步。下面我把这一剂良药送给你。 Java作为一门编程语言,最好的学习方法就是写代码。当你学习一个类以后,你就可以自己写个简单的例子程序来运行一下,看看有什么结果,然后再多调用几个类的方法,看看运行...
标签: ASP
  if bh="" then    sql="select * from sl where bh like '%"&ss&"%'"   else bh=clng(bh) sql="select * from sl where bh=" & bh & " " end if   if nam<"" then   sql=sql&" and nam like '...

经验教程

583

收藏

19
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部