This is a discussion on "[SOLVED] Login" within the PHP Forum section. This forum, and the thread "[SOLVED] Login are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Login
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
[SOLVED] Login
I am creating a simple login and i can't get it to work
/index.php
__________________
The Net is Dying | Fan Rage | We are Battlefield heroes - BFH Forum Vanilla Source - Vanilla Help, and mods
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
|
|
||||
|
Re: Login
No where in the code do you have the connection to the MYSQL database.
Try this tutorial http://www.phpeasystep.com/workshopview.php?id=6
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: Login
On the first line of login.php
__________________
The Net is Dying | Fan Rage | We are Battlefield heroes - BFH Forum Vanilla Source - Vanilla Help, and mods
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
||||
|
Re: Login
Ahh ok. Try adding the links.php to the actual file instead of including it.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: Login
Ok makes not difference it still goes to that page, and its blank.
__________________
The Net is Dying | Fan Rage | We are Battlefield heroes - BFH Forum Vanilla Source - Vanilla Help, and mods
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
||||
|
Re: Login
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: Login
No not that tryed it
any i am sure its not that because i think the code is not be actived, On the index page i set the form to go to /login.php is that right?
__________________
The Net is Dying | Fan Rage | We are Battlefield heroes - BFH Forum Vanilla Source - Vanilla Help, and mods
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
Last edited by simonb; Jan 1st, 2008 at 14:31. |
|
||||
|
Re: Login
Try removing the forward slash. Make sure the php does display text when logged in.
Try doing: 1) Set up a login success page
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: Login
You don't have a POST variable for username
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: Login
More clearly:
Nothing is happening in your script as you first check for these variables, but they don't exist so nothing happens.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: Login
Thanks for that Alex all working
I would give you some Rep Solved
__________________
The Net is Dying | Fan Rage | We are Battlefield heroes - BFH Forum Vanilla Source - Vanilla Help, and mods
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
||||
|
Re: [SOLVED] Login
Glad you got it working mate.
Small errors like that can be hard to find. If you think about it logistically though it's easy. None of your code was being executed and all of it was dependent on that if statement therefore there's obviously something wrong with it
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Need help with HTML login | Bravo81 | PHP Forum | 8 | Jan 23rd, 2008 15:20 |
| [SOLVED] php Login page | dhossai | PHP Forum | 26 | Oct 17th, 2007 17:53 |
| PHP Login | Jack Franklin | PHP Forum | 25 | Oct 10th, 2007 09:27 |
| php login help | Aaron1988 | PHP Forum | 2 | Jan 25th, 2007 15:58 |
| Php login | cbrams9 | PHP Forum | 1 | Sep 14th, 2006 22:05 |