Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!(checkRegexp( $('#newuseremail'), /^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,6}$/ , "Email address invalid" , $("#createAccountTips"))
- && checkRegexp( $('#newusername'), /^[0-9a-z_]{5,40}$/ , "Username invalid : may only contain english characters, numbers and underscores( _ ),<br /> and must be between 5 and 40 characters" , $("#createAccountTips"))
- && checkRegexp( $('#newuserpass'), /^(.){5,40}$/ , "Password invalid : must be between 5 and 40 characters" , $("#createAccountTips"))
- && checkRegexp( $('#captcha'), /^(.){5,5}$/ , "Please copy the text in the image" , $("#createAccountTips"))
- && ($('#newuserpass').val() == $('#newuserpassrepeat').val())
- )){
- if($('#newuserpass').val() != $('#newuserpassrepeat').val()){
- $('#newuserpass,#newuserpassrepeat').addClass( "ui-state-error" );
- $('#createAccountTips').append("<li>passwords don't match</li>");
- } else LoadPage("login.php",{ username : $("#newusername") , password : $("#newuserpass").val() , email : $("#newuseremail").val() } , "");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement