Register for your free account! | Forgot your password?

You last visited: Today at 06:08

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

Advertisement



[Help] register page

Discussion on [Help] register page within the EO PServer Hosting forum part of the Eudemons Online category.

Reply
 
Old   #1
 
alaaemad's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 162
Received Thanks: 141
[Help] register page

hey guys

can some one talk to me how i can make register page like it

alaaemad is offline  
Old 10/04/2010, 20:22   #2
 
Jack Sparrow's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 522
Received Thanks: 626
Check out this

Jack Sparrow is offline  
Thanks
2 Users
Old 10/05/2010, 03:34   #3
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
PHP Code:
<form method="post" action="">

Username: <input type="text" name="username" value="" /><br/>
Password: <input type="password" name="pass" value="" /><br/>
Repeat Password: <input type="password" name="pass2" value=""/><br/>

<input type="submit" name="submit" value="Submit" />

</form>

<?php
$conn 
mysql_connect("localhost""root""Password");
$db mysql_select_db("databasename");


if(isset(
$_POST['submit']))
{
     if(isset(
$_POST['pass']) && $_POST['pass'] != "")
     {
          if(
$_POST['pass'] == $_POST['pass2'])
          {
               if(
strlen($_POST['pass']) > && strlen($_POST['pass']) < 32)
               {
                    
$sql "INSERT INTO `TableName` (Username, Password) VALUES ('".$_POST['ColumnName']."', '".$_POST['ColumnName']."')";
                    
$sql mysql_query($sql);
                    echo 
"Registered Successfully";
               } else {
                    die(
"Your password must be between 3 and 32 characters.");
               }
          } else {
               die(
"Your passwords do not match.");
          }
     } else {
          die(
"Please enter in a password.");
     }
}
?>
Give this a try.
Arcо is offline  
Thanks
2 Users
Old 10/05/2010, 15:05   #4
 
alaaemad's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 162
Received Thanks: 141
ty alot guys

but look

alaaemad is offline  
Old 10/05/2010, 15:55   #5
 
King_Arthur's Avatar
 
elite*gold: 246
Join Date: Jan 2008
Posts: 1,712
Received Thanks: 895
Quote:
Originally Posted by alaaemad View Post
ty alot guys

but look
<Image>
Did you try to read the error messages before posting? It says access is denied, which means your username, password, or host is wrong. Fix that and then see what happens.

Arco's code is standalone, it doesn't use a config.php. If you have a config.php you have to edit his code to use it (which if you could do that you probably already would have known that) OR you can just edit the values on line 12 to the credentials you use in the order: host, username, password.
King_Arthur is offline  
Thanks
1 User
Old 10/05/2010, 16:54   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
You need to edit these lines:
Code:
$conn = mysql_connect("localhost", "root", "Password");
$db = mysql_select_db("databasename");

$sql = "INSERT INTO `TableName` (Username, Password) VALUES ('".$_POST['ColumnName']."', '".$_POST['ColumnName']."')";
Arcо is offline  
Old 10/05/2010, 19:51   #7
 
alaaemad's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 162
Received Thanks: 141
wow thanks alot guys

all thing fine now
alaaemad is offline  
Reply


Similar Threads Similar Threads
Need Register Page!
10/30/2009 - Aion - 0 Replies
Can anybody tell me how to make a account or give me a Register Page? Please and thx Once i get this i can release my Servers!
[HELP]REGISTER PAGE
07/14/2009 - Dekaron Private Server - 6 Replies
Hello.....i am with problems in dekaron register page.......some1 can help me to fix? u can check error at ilusiongz.sytes.net/register.php......who can help me add in msn [email protected] is a dedi server.....:D.....i'm looking for a team to work on it thanks ............
Register Page Help Please
06/29/2009 - Dekaron Private Server - 0 Replies
edit please delete this is topic now no problem :)
[Help]Register page
12/27/2008 - CO2 Private Server - 9 Replies
Could anyone help me with putting up a register page , i know i have to put the register.php to appserv www folder but it didn't work properly when i went to the website .
Register Page
11/20/2008 - Flyff Private Server - 2 Replies
Ich bins (mal wieder :rolleyes:) Ich hätt mal wieder ne Frage ich hab mir mehrere Page Tuts durchgelesen und ausgeführt und es kam jedes mal Das gleiche Ergebnis raus. Und zwar dass ich nicht auf die Seite zugreifen kann. (Ja ich habe Hamachi on, Ja ich habe Xampp on, Ja ich habe die Dateien in den httdocs Ordner getan.) Ich danke euch ein weiteres Mal für schnelle Antworten :handsdown:.



All times are GMT +2. The time now is 06:08.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.