| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
How do I mine for fish?!
Join Date: May 2008
Posts: 6
|
Hey everyone; I'm not really good at PHP. I have used Jesusfreak101's tutorial and got most of it but it seems that he doesn't have a registration page. Can anyone help me on it? All I need is a reg. page! |
|
|
|
|
|
#2 (permalink) |
|
Best custom title ever.
Join Date: Apr 2008
Posts: 229
|
Here's the registration script I have going on my site. Read through it and let me know if you have any difficulties. Oh and I recommend you start reading from "if ($good == false) {"/ PHP Code:
Last edited by LukeV : 30-05-2008 at 12:53. |
|
|
|
#3 (permalink) |
|
How do I mine for fish?!
Join Date: May 2008
Posts: 6
|
Thanks =)
Thanks, I will let you know, if I have any problems with it. I had to format my comp and I lost my stuff -.-! So, after I find JesusFreak's login system I will try and put the reg page you gave me. I will then let you know if I have any problems Thanks again! |
|
|
|
#4 (permalink) |
|
ie must die
|
idk if u still need this, but this was my registration page: PHP Code:
There are two parts of the HTML, the first one is after they have registered it will show them that page. The second one is where they register all of their info. You can tweak it to how ever u like...this worked for me. let me know if you have any questions also dont forget this is all set for my DB and Tables, so dont just copy and paste. took me a while to get it |
|
|
|
#8 (permalink) | |
|
Best custom title ever.
Join Date: Apr 2008
Posts: 229
|
Quote:
Well that probably means there a communication error between the database. Make sure you type all your database info right and it should work. |
|
|
|
|
#9 (permalink) |
|
How do I mine for fish?!
Join Date: May 2008
Posts: 6
|
Well, the registration page you gave me work fine but it keeps opening the login page even if I login correctly! (The code that LukeV gave) Here is the login page you gave; PHP Code:
and this is the db page; PHP Code:
Thanks again |
|
|
|
#10 (permalink) |
|
Best custom title ever.
Join Date: Apr 2008
Posts: 229
|
Hey mate I just noticed I didn't give you login.php The code above is not the actually login process it just decides whether or not to show the login form. I use that code on my index page (the header to be exact so the login form is visible wherever the user is. So after the user hits submit it should direct to login.php (action="login.php") which processes the login and then redirects the user to the index again (header("location:./") Here's the login process: PHP Code:
I think you need to replace config.php with db.php whatever you called the file that connects with the database. If you want to the login page to be on a unique page you can change action="login.php" to whatever you call the above file. |
|
|
|
#11 (permalink) |
|
ie must die
|
also another small note, which ever encryption you use (md5, sha1) make sure you stick with it on the whole site because if you have two of them it will not work. that happened to me. My encryption on my pages are sha1. LukeV is using md5 also make sure when they click on "Login" it is linked to login.php |
|
![]() |