Heim >Backend-Entwicklung >PHP-Tutorial >会员注册验证代码(php+mysql+Ajax)_PHP教程
会员注册验证代码(php+mysql+Ajax)
会员注册验证代码(php教程+mysql教程+ajax)
请注册会员,只有会员才能发表贴子,游客可以回贴和使用快捷回复功能! |
提示:如果您已经注册了会员,请跳过此步骤,直接点这里 |
|
下面为js文件代码
function removeeventlistener(element, eventtype, handler, capture)
{
try
{
if (element.removeeventlistener)
element.removeeventlistener(eventtype, handler, capture);
else if (element.detachevent)
element.detachevent("on" + eventtype, handler);
}
catch (e) {}
};
//image;
function preloadimages(){
var d = document;
if(d.images){
if(!d.p_i_a) d.p_i_a = new array();
var i,j=d.p_i_a.length,a=arguments;
for(i=0;i
d.p_i_a[j++].src = a[i];
}
}
}
//ajax功能;
function loadajaxelement(e,u,p,f,l){
if(arguments.length return ;
}
o = $(e);
o.innerhtml = l;
p = $h(p).toquerystring();
new ajax.updater(
{success: e},
u,
{method: 'get', parameters: p, onfailure: f});
}
function loadajaxdata(u,p,s,f){
if(arguments.length return ;
}
p = $h(p).toquerystring();
new ajax.request(
u,
{method: 'get', parameters: p, onsuccess:s,onfailure: f});
}
function sendajaxelement(e,u,p,f,l){
if(arguments.length return ;
}
o = $(e);
o.innerhtml = l;
p = $h(p).toquerystring();
new ajax.updater(
{success: e},
u,
{method: 'post', parameters: p, onfailure: f});
}
function sendajaxdata(u,p,s,f){
if(arguments.length return ;
}
p = $h(p).toquerystring();
new ajax.request(
u,
{method: 'post', parameters: p, onsuccess:s,onfailure: f});
}
this.divname = "pwd_div_"+math.ceil(math.random()*100000);
this.minlen = 6;
this.width = "150px";
this.height = "16px";
this.content = "";
this.selectedindex = 0;
this.init();
}
passwordstrength.prototype.init = function(){
var s = '
'; |
//reg.php
$a="wyjboy";
if($a == "$usr"){
echo 0;
}else{
echo 1;
}
?>