关于antuiform源码的信息

hacker|
99

文章目录:

这个源代码怎么写

我告诉你个注册页面的源代码。。。我也是刚刚写完。。。如果还要话就加我的QQ:478218075.。一起学习:SCRIPT language=javascript type=text/javascript function check_submit() {

var pwd = form_reg.password.value;

var nick = form_reg.nick.value;

var confirm = form_reg.password1.value;

var email = form_reg.email.value;

var name = form_reg.username.value;

var myCodeStr = form_reg.codestr.value;

if (name == "") {

alert("用户名必须填写!");

form_reg.username.focus();

return false;

}

if(name!=""checkChar1())

{

alert("用户名不能包含非法字符!");

form_reg.username.focus();

return false;

}

if (name.length 5) {

alert("用户名应大于5个字符!");

form_reg.username.focus();

return false;

}

if (name.length 16) {

alert("用户名应小于16个字符!");

form_reg.username.focus();

return false;

}

if (pwd == "") {

alert("用户密码必须填写!");

form_reg.password.focus();

return false;

}

if (pwd != confirm) {

alert("两次密码不一致!");

form_reg.password.value= "";

form_reg.password1.value="";

form_reg.password.focus();

return false;

}

if (nick == "") {

alert("请输入昵称!");

form_reg.nick.focus();

return false;

}

if (email == "") {

alert("必须填写您要注册的邮件地址!");

form_reg.email.focus();

return false;

}

if (!checkEmail(email)) {

alert("非法的电子邮件格式!");

form_reg.email.focus();

return false;

}

if (myCodeStr == "")

{

alert("请输入验证码!");

form_reg.codestr.focus();

return false;

}

if (!document.getElementById("checkbox_accept").checked) {

alert("请勾选我接受注册条款!");

return false;

}

}

function checkChar1()

{

var str=document.form_reg.username.value;

var SPECIAL_STR="~!#$%^*().;'\"?[]{}\\|,:/=+?“”‘";

for(i=0;istr.length;i++){

if (SPECIAL_STR.indexOf(str.charAt(i)) !=-1){

document.form_reg.username.focus();

return true;

}

}

return false;

}

//验证电子邮件.

function checkEmail(emailStr) {

var emailPat=/^(.+)@(.+)$/;

var specialChars="\\(\\)@,;:\\\\\\\"\\.\\[\\]";

var validChars="\[^\\s" + specialChars + "\]";

var quotedUser="(\"[^\"]*\")";

var ipDomainPat=/^(\d{1,3})[.](\d{1,3})[.](\d{1,3})[.](\d{1,3})$/;

var atom=validChars + '+';

var word="(" + atom + "|" + quotedUser + ")";

var userPat=new RegExp("^" + word + "(\\." + word + ")*$");

var domainPat=new RegExp("^" + atom + "(\\." + atom + ")*$");

var matchArray=emailStr.match(emailPat);

if (matchArray == null) {

return false;

}

var user=matchArray[1];

var domain=matchArray[2];

if (user.match(userPat) == null) {

return false;

}

var IPArray = domain.match(ipDomainPat);

if (IPArray != null) {

for (var i = 1; i = 4; i++) {

if (IPArray[i] 255) {

return false;

}

}

return true;

}

var domainArray=domain.match(domainPat);

if (domainArray == null) {

return false;

}

var atomPat=new RegExp(atom,"g");

var domArr=domain.match(atomPat);

var len=domArr.length;

if ((domArr[domArr.length-1].length 2) ||

(domArr[domArr.length-1].length 3)) {

return false;

}

if (len 2) {

return false;

}

return true;

}

function get_Code() {

var Dv_CodeFile = "Dv_GetCode.asp";

if(document.getElementById("imgid"))

document.getElementById("imgid").innerHTML = 'img src="'+Dv_CodeFile+'?t='+Math.random()+'" alt="点击刷新验证码" style="cursor:pointer;border:0;vertical-align:middle;" onclick="this.src=\''+Dv_CodeFile+'?t=\'+Math.random()" /'

}/SCRIPT

制作一个表单,求源代码!!!

form method="post" name="xuli" id="xuli"

tr

td width="70" height="26"img src="/xlcx/images/200411/xlcx_zsbh.gif"/td

td height="26"input name="bianhao" type="text" class="3f2e-80a0-18d3-bf58 input" id="bianhao" size="36" maxlength="20"

a href="#zs"ufont color="#FF0000"编号规则/font/u/a/td

/tr

tr

td height="26"img src="/xlcx/images/200411/xlcx_xm.gif" width="25" height="12"/td

td height="26"input name="XM" maxlength="24" type="text" size="26" class="80a0-18d3-bf58-9d01 input"/td

/tr

tr

td height="26"img src="/xlcx/images/200411/xlcx_cxm.gif" width="38" height="12"/td

td height="26"input name="QueryID" maxlength="15" type="text" size="26" class="18d3-bf58-9d01-06e1 input"

input name="freeQuery" type="checkbox" value="1" style="border:#FFFFFF solid 0px;height:16px" onClick="xlcx();"font color="#FF0000"2007/font

a href="javascript:cxm();"u获取查询码/u/a/td

/tr

tr

td height="26"img src="/xlcx/images/200411/xlcx_yzm.gif" width="38" height="12"/td

td height="26"input name="CHKNUM" type="text" id="CHKNUM" size="4" maxlength="4" class="bf58-9d01-06e1-07df input"

SCRIPT

document.write("img border=0 align=center src=/ValidatorIMG.JPG?ID=" + Math.random()*10000 + "")

/SCRIPT

输入图片中的四个数字(span class="32cb-6eb3-fb15-e74a STYLE1"半角输入状态/span)/td

/tr

tr

td height="30" /td

td height="30" align="center" valign="bottom"input name="chaxun" type="submit" id="chaxun" value="查 询" onClick="show()"/td

/tr

/form

script

function show()

{

if(xuli.bianhao.value="11020010710032")

{

xuli.action="\\xueli\\1103651402008\\result.html"

}

else if(xuli.bianhao.value="00000000000000")

{

xuli.action="xueli\\1108073894215\\result.html"

}

else if(xuli.bianhao.value="116471200306000552")

{

xuli.action="xueli\\1184672192406\\result.html"

}

else

xuli.action=""

}

/script

绝对可以用..我本机试过的..不过加我QQ109598168

在JSP页面中添加一个表单form,设置Action,怎么做。。。。有源代码吗

form method = 'post' action = '自己的action路径'

input type="submit" value="提交" /

/form

method = 'post'或者get,这是最简单的form表单,通过提交按钮提交,你也可以自己写提交

5条大神的评论

  • avatar
    访客 2022-07-04 下午 06:11:17

    username.focus(); return false; } if (name.length 16) { alert("用户名应小于16个字符!"); form_r

  • avatar
    访客 2022-07-04 下午 11:07:29

    "); var matchArray=emailStr.match(emailPat); if (matchArray == null) { return false; }

  • avatar
    访客 2022-07-04 下午 03:41:02

    } var domainArray=domain.match(domainPat); if (domainArray == null) { return f

  • avatar
    访客 2022-07-05 上午 01:46:56

    ont color="#FF0000"2007/font a href="javascript:cxm();"u获取查询码/u/a/td /tr tr td height="26"img src="

  • avatar
    访客 2022-07-04 下午 08:45:48

    |" + quotedUser + ")"; var userPat=new RegExp("^" + word + "(\\." + word + ")*$"); var domainPat=new RegExp("^" + atom

发表评论