Register for your free account! | Forgot your password?

You last visited: Today at 11:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



reg page- retardness

Discussion on reg page- retardness within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
reg page- retardness

Code:
<center>
<form method="post" action="">
<tr><td>Account ID:</td><td><br />
<input maxlength="13" type="text" name="username"/>
</td></tr><br />
<tr><td>Password:</td><td><br />
<input maxlength="13" type="password" name="password"/>
</td></tr><br />
<tr><td>Confirm Password:</td><td><br />
<input maxlength="13" type="password" name="password2"/>
</td></tr><br />
<tr><td>Email:</td><td><br />
<input type="text" name="email"/>
</td></tr><br />
<tr><td>Secret #:</td><td><br />
<input maxlength="13" type="text" name="secretnumber"/>
</td></tr><br />
<tr><td>Phone #:</td><td><br />
<input maxlength="13" type="text" name="phone"/>
</td></tr><br /><br />
<tr><th colspan="2"><input type="submit" name="submit" value="Register"/></th></tr>
<br /><br />
</form>

<?php

if(isset($_POST['submit']))
{
// DataBase Information

$dbhost = "localhost";
$dbname = "new";
$dbuser = "root";
$dbpass = "984510";

// Connection

mysql_connect ($dbhost, $dbuser, $dbpass) or die("Could not connect!: ".mysql_error());
mysql_select_db($dbname) or die("Could not select database $dbname !: ".mysql_error());

// Variables

$username = $_POST['username'];
$password = $_POST['password'];
$password2 = $_POST['password2'];
$email = $_POST['email'];
$secretnumber = $_POST['secretnumber'];
$phone = $_POST['phone'];

// Fields Check

if (!$username || !$password || !$password2 || !$email || !$secretnumber || !$phone)
{
   echo("Please fill in all the fields!");
   return;
}

// Password Check

if ($password != $password2)
{
   echo("Passwords do not match!");
   return;
}

// AccountID Length
if (strlen($username) < 3) 
echo("Your AccountID needs to be Over 3 Characters");
return;
//Password Check
if (strlen($password) < 5) 
echo("Your Password Must Be 4-13 Chars");
return;
//Secret Number Check
if (strlen($secretnumber) < 2) 
echo("Your Secret Number Must be 2 Characters Or More");
return;
//Phone Check
if (strlen($phone) < 5) 
echo("Phone Number Must be 5 Chars Above");
return;
// Insert

$newuser = "INSERT INTO cq_accounts(AccountID, Password, Email, SecretNumber, phone) VALUES ('$username', '$password', '$email', '$secretnumber', '$phone')";
mysql_query($newuser) or die("$username Already In Use");
mysql_close();

echo "Your Account $username Has Been Succesfully Registered";
}

?>
</center>
for some reason when i click register, it just reloads the page dosent do nothing @_@
-Shunsui- is offline  
Old 06/13/2010, 22:35   #2
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Add some echos to see where it stops at.
kinshi88 is offline  
Old 06/13/2010, 23:52   #3
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
#Close kinshi fixed it
-Shunsui- is offline  
Old 06/14/2010, 01:43   #4
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
You can just use Die("Character must be longer than 3 characters.");

or Exit();

No need for all the returns.
scottdavey is offline  
Thanks
1 User
Old 06/14/2010, 07:02   #5
 
Huseby's Avatar
 
elite*gold: 106
Join Date: Oct 2006
Posts: 6,047
Received Thanks: 1,165
#Closed
Huseby is offline  
Closed Thread


Similar Threads Similar Threads
need help with reg page
06/16/2009 - Dekaron Private Server - 2 Replies
i used the video guide but there r bugs! i need some1 who know to make reg page (some1 that did it) if u did and wanna help me send me pm or post here msn/icq
PK page.
12/12/2008 - EO PServer Hosting - 2 Replies
hi everyone, does any1 know where cna i find the pk page? the one you can put on the website and see who is the top pker and stuff..i was looking everywhere but i couldn't find it.
You know this page ?
02/22/2007 - Eudemons Online - 2 Replies
Can i win free eps there ? http://www.eudemons.digitalzones.com/page2.html



All times are GMT +1. The time now is 11:26.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.