@{// Initialize page var email = ""; var password = ""; var confirmPassword = ""; var ErrorMessage = ""; // If this is a POST request, validate and process data if (IsPost) { email = Request.Form["email"]; password = Request.Form["password"]; confirmPassword = Request.Form["confirmPassword"]; if (email.IsEmpty() || password.IsEmpty()) { ErrorMessage = "You must specify both email and password.";} if (password != confirmPassword) { ErrorMessage = "Password and confirmation do not match.";} // If all information is valid, create a new account if (ErrorMessage=="") { var db = Database.Open("Users"); var user = db.QuerySingle("SELECT Email FROM UserProfile WHERE LOWER(Email) = LOWER(@0)", email); if (user == null) { db.Execute("INSERT INTO UserProfile (Email) VALUES (@0)", email); WebSecurity.CreateAccount(email, password, false); // Navigate back to the homepage and exit Response.Redirect("~/"); } else {ErrorMessage = "Email address is already in use.";} } } } @if (ErrorMessage!="") {

@ErrorMessage

Please correct the errors and try again.

}
Sign-up Form
Zari Entertainment
zamy logo
HomeEntertainmentTechnologyOdd newsPoliticsBusinessWork from Home ProjectsPayPal To MpesaTerms and Conditions

80s toys - Atari. I still have