problem on register page??
">
ID
PW
$_POST[username], "PW"=>$_POST[password], ); for($i=0;$i0) { session_register("usercode"); $farr = odbc_fetch_array($q); $_SESSION["ID"]=$farr[userid]; echo "LOGIN SUCCEED!"; } else echo "CONNECTION FAILED!"; } echo "
BACK"; } ?>
">
ID
PW
$_POST[username], "PW"=>$_POST[password], ); for($i=0;$iis_valid_string($_POST[username]) && !$func->is_valid_string($_POST[password])) { $usernameP=$_POST[username]; $query = "SELECT * FROM [accountdb].[dbo].[".( strtoupper($usernameP[0]) ) ."GameUser] WHERE [userid]='$usernameP'"; $q = odbc_exec($connection, $query); $qt = odbc_do($connection, $query); $i = 0; while(odbc_fetch_row($qt)) $i++; if($i>0) echo"USERNAME $_POST[username] HAVE ALREADY TAKEN!"; else { $query = "INSERT INTO [accountdb].[dbo].[".( strtoupper($usernameP[0]) ) ."GameUser] ([userid],[Passwd],[GameCode],[GPCode],[RegistDay],[DisuseDay],[UsePeriod],[inuse],[Grade],[EventChk],[SelectChk],[BlockChk],[SpecialChk],[ServerName],[Credit],[ECoin],[StartDay],[LastDay],[EditDay],[RNo],[DelChk],[SNo],[Channel],[BNum],[MXServer],[MXChar],[MXType],[MXLevel],[MXExp]) VALUES('$_POST[username]','$_POST[password]','0','0',NULL,NULL,'30','0','0','0','0','0','0','0','0','0.00',NULL,NULL,NULL,0,'0','0','0','0','0','0',0,0,0)"; $q = odbc_exec($connection, $query); if($q) echo"USERNAME $_POST[username] HAVE BEEN REGISTERED!"; } } else echo"PLEASE RE-ENTER USENAME AND PASSWORD, REMOVE ALL SPECIAL CHARACTER!"; } echo "
BACK"; } ?>
~ thats suck :P ~
Re: problem on register page??
I haven't memorized every single registration script out there (yet!) so which one are you referring to?
Re: problem on register page??
Hmm
i use
XPTAccManager
-_- and not work ...
Re: problem on register page??
Gotta give me more info. Did you install PHP?
Are you using Apache? IIS? Something else?
If you just need a registration script, there's an ASP one by Quantumfusion floating around. It's old, but it works well. Comes with a nice interface and would require a simply download such as Baby ASP Web Server.
Re: problem on register page??
Quote:
Originally Posted by
DarkKnightH20
Gotta give me more info. Did you install PHP?
Are you using Apache? IIS? Something else?
If you just need a registration script, there's an ASP one by Quantumfusion floating around. It's old, but it works well. Comes with a nice interface and would require a simply download such as Baby ASP Web Server.
1. i use wamp server2.0
-_-
2. im owner gunz >.>
3. i want be owner pt
Re: problem on register page??
Never used wamp, but I have used AppServ's pack--
http://www.appservnetwork.com/
And it works with XPT's Account Manager.
Re: problem on register page??
Just install xampp, after installing put the script into the htdocs folder. open the config.php, put in your database information and see.. its working.
Its a really, really easy installarion.
Re: problem on register page??
Quote:
Originally Posted by
KuhGel
Just install xampp, after installing put the script into the htdocs folder. open the config.php, put in your database information and see.. its working.
Its a really, really easy installarion.
i know that -_- i do that -_-:thumbdown:
Re: problem on register page??
I dont even know where the code is from. You just posted it an we have to think all about.. well, we know nothing about your problem, what about a good decription about it?
Maybe we are able to help you a bit better. :x