You last visited: Today at 00:09
Advertisement
Help with register page?
Discussion on Help with register page? within the CO2 Private Server forum part of the Conquer Online 2 category.
04/19/2009, 18:59
#1
elite*gold: 0
Join Date: Jun 2008
Posts: 6
Received Thanks: 0
Help with register page?
When i register [im using wamp not appserv] it keeps saying "Register Failed" over and over.
04/19/2009, 21:15
#2
elite*gold: 0
Join Date: Jan 2009
Posts: 425
Received Thanks: 424
Try Setup Appserv and Put Files There Appserv/www
04/19/2009, 21:18
#3
elite*gold: 20
Join Date: May 2007
Posts: 1,125
Received Thanks: 332
It doesn't matter what you use. Both have PHP, Apache, and MySQL. >_>
Post the script. There might be an error in it.
04/20/2009, 00:28
#4
elite*gold: 0
Join Date: Jun 2008
Posts: 6
Received Thanks: 0
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15" />
<meta name="description" content="ConquerOnlineCMS." />
<meta name="keywords" content="Conquer Online, pauldexter" />
<meta name="author" content="Matt" />
<link href="../images/style.css" rel="stylesheet" type="text/css" />
<link href="../templates/default/basic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form action="?op=register" method="post">
<div align="center"><br />
</div>
<table width="338" border="0" align="center">
<tr>
<td width="132" height="20" class="b01">Username:</td>
<td width="196"><label>
<input name="user" type="text" class="liteoption" id="user" size="15" maxlength="15" />
</label></td>
</tr>
<tr>
<td height="25" class="b01">Website Password:</td>
<td><input name="pass1" type="password" class="liteoption" id="pass1" size="15" maxlength="15" /></td>
</tr>
<tr>
<td height="24" class="b01">Repeat Password: </td>
<td><input name="pass2" type="password" class="liteoption" id="pass2" size="15" maxlength="15" /></td>
</tr>
</table>
<p align="center"> </p>
<p align="center">
<input name="submit" type="submit" class="liteoption" value="Register" />
</p>
</form>
<div align="center">
<?php
if(isset($_POST['submit'])) {
if(!$_POST['user'] || !$_POST['pass1'] || !$_POST['pass2']) {
die('You must fill in all of the feilds!!!<BR>');
}
if(!get_magic_quotes_gpc()) {
$user = addslashes($_POST['user']);
$pass = md5($_POST['pass1']);
} else {
$user = $_POST['user'];
$pass = md5($_POST['pass1']);
}
$pass2 = md5($_POST['pass2']);
$check = mysql_query("SELECT * FROM accounts WHERE accountid = '$user'");
$check2 = mysql_num_rows($check);
if($check2 != '0') {
die("Username: '".$user."' is in use!");
}
if($pass != $pass2) {
die('Passwords dont match!');
}
$insert_member = mysql_query("INSERT INTO accounts (accountid, webpassword, logontype, status) VALUES ('$user', '$pass', '2', '2')");
if($insert_member) {
echo("<p class='b01'>Registration Complete! <a href=?op=home>Click here</a>");
} else {
echo("<p class='b01'>Registration Failed!</p>");
}}
?>
</div>
</body>
</html>
Here it is. it looks perfect to me.. :\
04/20/2009, 01:46
#5
elite*gold: 0
Join Date: Mar 2007
Posts: 146
Received Thanks: 17
Try this one
Should work just fine
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15" />
<meta name="description" content="ConquerOnlineCMS." />
<meta name="keywords" content="Conquer Online, pauldexter" />
<meta name="author" content="Matt" />
<link href="../images/style.css" rel="stylesheet" type="text/css" />
<link href="../templates/default/basic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form action="?op=register" method="post">
<div align="center"><br />
</div>
<table width="338" border="0" align="center">
<tr>
<td width="132" height="20" class="b01">Username:</td>
<td width="196"><label>
<input name="user" type="text" class="liteoption" id="user" size="15" maxlength="15" />
</label></td>
</tr>
<tr>
<td height="25" class="b01">Website Password:</td>
<td><input name="pass1" type="password" class="liteoption" id="pass1" size="15" maxlength="15" /></td>
</tr>
<tr>
<td height="24" class="b01">Repeat Password: </td>
<td><input name="pass2" type="password" class="liteoption" id="pass2" size="15" maxlength="15" /></td>
</tr>
</table>
<p align="center"> </p>
<p align="center">
<input name="submit" type="submit" class="liteoption" value="Register" />
</p>
</form>
<div align="center">
<?php
if(isset( $_POST [ 'submit' ])) {
if(! $_POST [ 'user' ] || ! $_POST [ 'pass1' ] || ! $_POST [ 'pass2' ]) {
die( 'You must fill in all of the feilds!!!<BR>' );
}
if(! get_magic_quotes_gpc ()) {
$user = addslashes ( $_POST [ 'user' ]);
$pass = md5 ( $_POST [ 'pass1' ]);
} else {
$user = $_POST [ 'user' ];
$pass = md5 ( $_POST [ 'pass1' ]);
}
$pass2 = md5 ( $_POST [ 'pass2' ]);
$check = mysql_query ( "SELECT * FROM accounts WHERE AccountID = ' $user '" );
$check2 = mysql_num_rows ( $check );
if( $check2 != '0' ) {
die( "Username: '" . $user . "' is in use!" );
}
if( $pass != $pass2 ) {
die( 'Passwords dont match!' );
}
$insert_member = mysql_query ( "INSERT INTO accounts (AccountID, WebPassword, LogonType, Status) VALUES (' $user ', ' $pass ', '2', '2')" );
if( $insert_member ) {
echo( "<p class='b01'>Registration Complete! <a href=?op=home>Click here</a>" );
} else {
echo( "<p class='b01'>Registration Failed!</p>" );
}}
?>
</div>
</body>
</html>
04/20/2009, 02:01
#6
elite*gold: 0
Join Date: Jun 2008
Posts: 6
Received Thanks: 0
it still fails... WTF @_@;;
04/20/2009, 02:31
#7
elite*gold: 0
Join Date: Mar 2007
Posts: 146
Received Thanks: 17
Try this then
PHP Code:
<form action="?op=register" method="post">
<div align="center"><br />
</div>
<table width="338" border="0" align="center">
<tr>
<td width="132" height="20" class="b01">Username:</td>
<td width="196"><label>
<input name="user" type="text" class="liteoption" id="user" size="15" maxlength="15" />
</label></td>
</tr>
<tr>
<td height="25" class="b01">Password:</td>
<td><input name="pass1" type="password" class="liteoption" id="pass1" size="15" maxlength="15" /></td>
</tr>
<tr>
<td height="24" class="b01">Repeat Password: </td>
<td><input name="pass2" type="password" class="liteoption" id="pass2" size="15" maxlength="15" /></td>
</tr>
<tr>
<td height="24" class="b01">Your favorite class: </td>
<td><input name="favcla" type="text" class="liteoption" id="pass2" size="15" maxlength="15" /></td>
</tr>
</table>
<p align="center"> </p>
<p align="center">
<input name="submit" type="submit" class="liteoption" value="Register" />
</p>
</form>
<div align="center">
<?php
if(isset( $_POST [ 'submit' ])) {
if(! $_POST [ 'user' ] || ! $_POST [ 'pass1' ] || ! $_POST [ 'pass2' ]) {
die( 'You must fill in all of the feilds!!!<BR>' );
}
if(! get_magic_quotes_gpc ()) {
$user = addslashes ( $_POST [ 'user' ]);
$pass = md5 ( $_POST [ 'pass1' ]);
} else {
$user = $_POST [ 'user' ];
$pass = md5 ( $_POST [ 'pass1' ]);
}
$pass2 = md5 ( $_POST [ 'pass2' ]);
$check = mysql_query ( "SELECT * FROM accounts WHERE AccountID = ' $user '" );
$check2 = mysql_num_rows ( $check );
if( $check2 != '0' ) {
die( "Username: '" . $user . "' is in use!" );
}
if( $pass != $pass2 ) {
die( 'Passwords dont match!' );
}
$insert_member = mysql_query ( "INSERT INTO accounts (AccountID, WebPassword, LogonType, FavoriteClass) VALUES (' $user ', ' $pass ', '2', ' $favcla ')" );
if( $insert_member ) {
echo( "<p class='b01'>Registration Complete! <a href=?op=home>Click here</a>" );
} else {
echo( "<p class='b01'>Registration Failed!</p>" );
}}
?>
</div>
04/20/2009, 20:06
#8
elite*gold: 0
Join Date: Jun 2008
Posts: 6
Received Thanks: 0
That still failed
04/20/2009, 21:08
#9
elite*gold: 0
Join Date: Apr 2009
Posts: 71
Received Thanks: 5
the password is encrypted so you have to use something else for PHP, i dont know im not a PHP master or learner..anyway just make it so you dont insert a password and do it so its just a username... Watch the video guide coattack released the register page is attached at bottom he tells you how to set it up in there . Very simple , very fast, and it works.
04/20/2009, 21:58
#10
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
One questions... From the script from IcedEarth (The owner from LOTF that I respect
) did you redirect it your database or just copy/paste it
04/20/2009, 22:02
#11
elite*gold: 0
Join Date: Jun 2008
Posts: 6
Received Thanks: 0
x__________x;; still need help XD
04/21/2009, 01:16
#12
elite*gold: 0
Join Date: Mar 2007
Posts: 146
Received Thanks: 17
# glupkotrup :
uhm if you would see its inserts automaticly to database with command on last rows. I know what im posting or doing.
04/22/2009, 00:39
#13
elite*gold: 0
Join Date: Jun 2008
Posts: 6
Received Thanks: 0
x_x Oh well. still need helps on it. D:
Similar Threads
register page
04/30/2010 - Cabal Private Server - 1 Replies
hiya i need help to make a register page could some one please help me to make one
i really need help
or send me a link for tutorial
thanks
i need simple nice layout could anyone please help me
Register page
02/18/2010 - CO2 Private Server - 8 Replies
I tried using this register page.
http://www.elitepvpers.com/forum/co2-pserver-guide s-releases/381506-release-simple-regpage-5165-a.ht ml
But every account I use it says wrong account or password, anyone know whats wrong? I'm not much of a php person lmao.
Register page
02/12/2010 - Metin2 Private Server - 2 Replies
Hallo liebe Community,
Ich möchte gerne eine Registration´s seite machen aber von RapidShare kann ich sie nicht downloaden help pls.
Register Page Bug
08/03/2009 - Dekaron Private Server - 2 Replies
Any1 know fix it ?
Thx
Screen of Error : Imageshack - imagenet
[HELP]Register page
06/29/2009 - CO2 Private Server - 0 Replies
i need help with this register page,
for some reason whenever i register it doesnt go through
but when other people register for my server it goes through perfectly.
my accounts save to ini
so can any1 give me a tutoriol on how to use the register page on here
lol im used to my old reg page that was just input username and then its all done
All times are GMT +2. The time now is 00:09 .