[RELEASE] Daniel's Regiser Page

Experienced Elementalist
Joined
Jul 11, 2008
Messages
281
Reaction score
1
Hey guys i was looking on the inernet to learn how to make a register page and i made my own WOOT ok here it is others may have similar ones because its a internet tut that basically explains everything


Reg Page Download :



I will be trying to work on other stuff but it takes time .. :D

Good luck with this if it dont work dont flame me im still learning tell me the errors and ill fix.
 
nice work. Works fine, and for the noobs that dont know how to install. On the line that says

$link=mysql_connect ("localhost", "YOURDBUSER", "YOURDBPASS") or die ('Error: ' . mysql_error());

Where YOURDBUSER and YOURDBPASS is usually "root" for user, and your pass is what u set it for mysql. (YOU MUST CHANGE FOR THIS TO WORK)
 
Steal this is my registration form... You where giving me tips on msn whilst i was making this. First he downloads a template and changes the banner and says he coded it now he releases my work. Fucking nooblet.


Used the same tutorial dude this is EXACTLY how i sent you it. Rofl you aint even edited 1 line
 
Steal this is my registration form... You where giving me tips on msn whilst i was making this. First he downloads a template and changes the banner and says he coded it now he releases my work. Fucking nooblet.

yup i use your reg form and when i was open is i was know is your in 2 seconds :))
 
Scoot Web form:
Code:
<html>
<head>
<title>Registration Page</title>
</head>
<center><b><u>ShadowCo</u></b><br />
Passwords will be automatically set on first login.</center><br />
<body>
<form method="post" action="index.php">

<center>Username: <input type="text" name="username" size="30" />
         <input type="submit" value="Complete Registration" name="Submit"/></center>
</form>
</body>
<center><br /> Visit our <a href="http://shadowco.ucoz.com">website</a>
<br /><br />Copyright 2008.</center><br /><br />

<center><b></b>Server Status:</b> <img src="http://status.blackout-gaming.net/status.php?dns=89.40.243.110&port=9958&style=1" alt="Status Checker Running" border="0"></center>
</html>

<?php
$link=mysql_connect ("localhost", "root", "") or die ('Error: ' . mysql_error());
mysql_select_db ("coproj");
$res = mysql_query("SELECT count(*) FROM accounts;");
$val = mysql_fetch_array($res);
echo "<br /><center>Total Accounts Created: ".$val[0]."</center>";

$res = mysql_query("SELECT count(*) FROM characters;");
$val = mysql_fetch_array($res);
echo "<center>Total Characters Created: ".$val[0]."</center>";

$username = $_POST['username'];

if(isset($_POST['Submit'])) {
if(!$_POST['username']) {
die('<center>You must fill in all of the fields!</center>');
}
$check = mysql_query("SELECT * FROM accounts WHERE AccountID = '$username'");
$check2 = mysql_num_rows($check);
if($check2 != '0') {
die("<center>Username: '".$username."' is in use!</center>");
}

mysql_query("INSERT INTO accounts (AccountID,LogonType) VALUES ('$username','2')"); 
die("<center>Username '".$username."' successfully registered!</center>"); }
?>

Daniel Web Form
Code:
<html>
<head>
<title>Registration Form</title>
</head>
<body>
<form method="post" action="register.php">

<center>Username: <input type="text" name="username" size="30" />
         <input type="submit" value="Complete Registration" name="Submit"/></center>
</form>
</body>
</html>

<?php
$link=mysql_connect ("localhost", "YOURDBUSER", "YOURDBPASS") or die ('Error: ' . mysql_error());
mysql_select_db ("coproj");//COPROJ is the database for lotf source

$username = $_POST['username'];

if(isset($_POST['Submit'])) {
if(!$_POST['username']) {
die('You must fill in all of the fields!');
}
$check = mysql_query("SELECT * FROM accounts WHERE AccountID = '$username'");
$check2 = mysql_num_rows($check);
if($check2 != '0') {
die("Username: '".$username."' is in use!");
}

mysql_query("INSERT INTO accounts (AccountID,LogonType) VALUES ('$username','2')"); 
die("Username '".$username."' successfully registered!"); }
?>

he just delete some lines to can say " hehe i'm goodo check my release" patetic
 
He didn't do anything, if you read other threads he asked me to create him one so i did and saved it as what you see in register.php. He edited nothing i even added the comment because i thought he would of been to stupid to understand.

I didn't give him the one i released because i didn't want to, So i made a simple button and textform,

Enough said Daniel's a pathetic Nub XD
 
Back