Sign Up Form

NOTE: After you submit your registration, you will receive an e-mail with a link to complete the registration. You will not be able to access the requested page until you complete the registration process.
'; $g=1; } elseif(ereg('[^A-Za-z0-9]', trim($v_username))){ $err=$err.'Username contains space or special characters.
'; $g=1; } if(trim($v_password)=='') { $err=$err.'Password field is blank.
'; $g=1; } elseif(strlen($v_password) < 6 ){ $err=$err.'Password is less than 6 characters.
'; $g=1; } elseif(ereg('[^A-Za-z0-9]', $v_password)){ $err=$err.'Password contains special characters.
'; $g=1; } elseif((trim($v_password1)=='')||($v_password<>$v_password1)) { $err=$err.'Confirm password doesn\'t match.
'; $g=1; } if(trim($v_name)=='') { $err=$err.'Name field is blank.
'; $g=1; } if(trim($v_email)=='') { $err=$err.'Email field is blank.
'; $g=1; } elseif($validemail<>1) { $err=$err.'Not a valid email address.
'; $g=1; } //check if username already exists $result=mysql_query("select uname,email from authuser"); while($row = mysql_fetch_array($result, MYSQL_NUM)) { if(strtolower($row[0])==strtolower($v_username)) {$err_username="Username($v_username) already exists.
"; $g=1; } elseif((strtolower($row[1])==strtolower($v_email))&&(trim($v_username)<>'')&&(trim($v_email)<>'')) {$err_email="This email address($v_email) already exists, please use different one.
"; $g=1; } } $err=$err.$err_username.$err_email; if ($g==1) { print "
$err"; print "
"; } else { $reg_key=RandomString(7); //generate validate key //$vdlink= $signup_activate."?username=".$v_username."&vcode=".$reg_key; //send email to member for activating account $result=mysql_query("select subject,contents from emailtemplates where name='signup'"); while($row = mysql_fetch_array($result, MYSQL_NUM)) { $v_subject=trim($row[0]); $v_message=nl2br(trim($row[1])); } $subject = "$v_subject"; $headers = "From: $v_emailfrom\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\r\n"; $v_message = ereg_replace("<%username%>","$v_username",$v_message); $v_message = ereg_replace("<%password%>","$v_password",$v_message); $v_message = ereg_replace("<%weburl%>","$url_root",$v_message); $v_message = ereg_replace("<%code%>","$reg_key",$v_message); //$message .= "

$vdlink"; if (mail($v_email, $v_subject, $v_message, $headers)) { $enpass=base64_encode("$v_password"); mysql_query("insert into authuser (uname,passwd,name,email,address,city,state,zip,country,phone,create_time,logincount,welcome,signup,status,reg_validate,validate_key) values ('$v_username','$enpass','$v_name','$v_email','$v_address','$v_city','$v_state','$v_zip','$v_country','$v_phone',now(),'0','1','1','0','0','$reg_key')"); $getip=getip(); mysql_query("insert into log (uname,ctime,ip,activity) values ('$v_username',now(),'$getip','User($v_username) signed up registration form, waiting to activate the account.')"); mysql_close($connection); echo "

Your registration account has been created, please check your email to activate your account.




"; exit; } else { echo "

Fails to create registration account.




"; exit; } } } ?>
Username* " size="35" style="border: 1px solid #808080; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1">
Password** " size="35" style="border: 1px solid #808080; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1">
Confirm Password** " style="border: 1px solid #808080; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1">
Full name* " style="border: 1px solid #808080; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1">
Email address* " style="border: 1px solid #808080; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1">
Address " style="border: 1px solid #808080; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1">
City " style="border: 1px solid #808080; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1">
State " style="border: 1px solid #808080; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1">
Zip Code " style="border: 1px solid #808080; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1">
Country
Phone " style="border: 1px solid #808080; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1">

If you have questions about registering with us, please see the Benchmark Games Privacy Policy.


                  Required fields
                  **Password must be at least 6 characters. (No special character)