testblog
Tollywood News, Bollywood News, Movie Reviews, Events
Home
Templates
Archives
About
Services
Web Design
PARENT PAGE
Wednesday, 5 June 2013
hi
09:31
No comments
hi
Email This
BlogThis!
Share to X
Share to Facebook
Share to Pinterest
Home
0 comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
Social Profiles
Best Blogger Templates
Popular
Tags
Blog Archives
lo
= 20) { //Username Length header('Location: register.php?error=user_length'); exit(); } else { if (strlen($password) <= 3 || strlen($password) >= 30) { //Password Length header('Location: register.php?error=pass_length'); exit(); } else { //Create Account $code = trim(sanitize(addslashes(rand(11111111,99999999)))); $insert = mysql_query("INSERT INTO users (username, password, email, ppemail,payzaemail, address, city, postal, state, country, ip, date, code, referral) VALUES ('$username', '" . password($password) . "', '$email', '$ppemail','$payzaemail', '$address', '$city', '$postal', '$state', '$country', '$ip', '$date', '$code', '$referral')") or die("Sorry, we couldn't create your account.
Go back
"); $lastid = mysql_insert_id(); //Send activation email $to = $email; $subject = "Activate your account"; $body = "Hello $username,\r\n\r\nThank you for signing up at " .$sitename. ". To confirm your email, click the link below or copy it into your browser.\r\nhttp://" .$domain. "/activate.php?id=$lastid&code=$code"; mail($to, $subject, $body); header('Location: login.php?success=complete'); exit(); } } } } } } } else { ?> Test Site
?php>
Register
Please fill in
all
the fields.
\n"; } elseif ($_GET['error'] == "username_exists"){ echo "
The username is
already
in use.
\n"; } elseif ($_GET['error'] == "email_exists"){ echo "
The email is
already
in use.
\n"; } elseif ($_GET['error'] == "email_invalid"){ echo "
Please enter a
valid
email address.
\n"; } elseif ($_GET['error'] == "user_length"){ echo "
Username must be between
3
to
20
characters.
\n"; } elseif ($_GET['error'] == "pass_length"){ echo "
Password must be between
3
to
30
characters.
\n"; } elseif ($_GET['error'] == "password"){ echo "
Your passwords do not
match
.
\n"; } ?>
Username
Email
PayPal Email
Payza Email
Password
Confirm Password
Address
City
Postal Code
State
Country
Agree to ToS
Register
?php >!doctype>
Celebrities tweets
About Me
vijaykumar
View my complete profile
Powered by
Blogger
.
Blog Archive
▼
2013
(1)
▼
June
(1)
hi
Blog Archive
▼
2013
(1)
▼
June
(1)
hi
Text
0 comments:
Post a Comment