[eluser]Mizanur Islam Laskar[/eluser]
VIEW File (SignUp.php):
Code:
<html >
<head>
<meta http-equiv="Content-Type" c>
<?php echo $metaTag1; ?>
<?php echo $metaTag2; ?>
<title><?php echo $title; ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo "$base/$inner_css";?>">
<link rel="stylesheet" type="text/css" href="<?php echo "$base/$milk";?>">
<link rel="stylesheet" type="text/css" href="<?php echo "$base/$chili";?>">
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed]
$(document).ready(function() {
var validator = $("#signupform").validate({
rules: {
email: { required: true, email: true, remote: "<?php echo "$base/$check_email";?>" },
password: { required: true, minlength: 6 },
password_confirm: { required: true, minlength: 6, equalTo: "#password" },
captcha: { required: true, minLength: 5, remote: "<?php echo "$base/$check_captcha";?>" }
},
messages: {
email: { required: "Please enter a valid Email Address", minLength: "Please enter a valid Email Address", remote: jQuery.format("{0} is already in use") },
password: { required: "Provide a password", rangelength: jQuery.format("Enter at least {0} characters") },
password_confirm: { required: "Repeat your password", minLength: jQuery.format("Enter at least {0} characters"), equalTo: "Enter the same Password as above"
},
captcha: { required: "Please type the Verification Code", minLength: jQuery.format("Please type the {0}-digit Verification Code"), remote: jQuery.format("Please type the Verification Code")
}
},
errorPlacement: function(error, element) {
if ( element.is(":radio") ) error.appendTo( element.parent().next().next() );
else if ( element.is(":checkbox") ) error.appendTo ( element.next() );
else error.appendTo( element.parent().next() );
},
submitHandler: function() { document.getElementById('signupform').submit(); },
success: function(label) { label.html(" ").addClass("checked"); }
});
});
[removed]
</head>
<body>
<form id="signupform" name="signupform" autocomplete="off" method="post" acti>
<table border="0" cellspacing="3" cellpadding="3">
<tr>
<td class="label" valign="middle"><label id="lemail" for="email">Email Address</label></td>
<td class="field" valign="middle">
<input class="input_txt" id="email" name="email" type="text" value="" size="30" maxlength="80" />
<br /><font style="font-size:12px;">[ this will not be shared ]</font>
</td>
<td class="status" valign="middle"></td>
</tr>
<tr>
<td class="label" valign="middle"><label id="lpassword" for="password">Password</label></td>
<td class="field" valign="middle"><input class="input_txt" id="password" name="password" type="password" value="" size="30" maxlength="50" /></td>
<td class="status" valign="middle"></td>
</tr>
<tr>
<td class="label" valign="middle"><label id="lpassword_confirm" for="password_confirm">Confirm Password</label></td>
<td class="field" valign="middle"><input class="input_txt" id="password_confirm" name="password_confirm" type="password" value="" size="30" maxlength="50" /></td>
<td class="status" valign="middle"></td>
</tr>
<tr>
<td class="label" valign="middle"><label id="lcaptcha" for="captcha">Type what you see</label></td>
<td class="field" valign="middle">
<img >
<input class="input_txt" style="float:right;" id="captcha" name="captcha" value="" type="text" size="8" maxlength="8" />
</td>
<td class="status" valign="middle"></td>
</tr>
<tr>
<td class="label" valign="middle"><label id="lsignupsubmit" for="signupsubmit">Signup</label></td>
<td class="field" colspan="2">
<input type="hidden" name="go" value="yes"><input type="submit" name="btn" value="Continue">
</td>
</tr>
</table>
</form>
</body>
</html>