This is a discussion on "User authentication problems" within the PHP Forum section. This forum, and the thread "User authentication problems are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
User authentication problems
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
User authentication problems
OK so maybe it's because it's getting or the fact that I work all day in .NET and come home PHP so I've got my languages mixed up but I cannot for the life of me figure out the problem here.
Here's my HTML log in form in index.php:
2. I can't get my header() to work because of the session_start() that I have at the top so how can I send people to the next page if it validates?! 3. Am I doing this properly? I never really understood sessions and kinda grabbed code as I went. Thanks! |
|
|
|
|||
|
Re: User authentication problems
Ok I played about with it for a bit and I found this code works for me....
BTW on your form page there should be an ID in your inputs to match them with they're labels lol. Blake |
|
||||
|
Re: User authentication problems
Quote:
Ok ... the code works but I get but I get the
|
|
|||
|
Re: User authentication problems
Well I didn't get any of those errors...
It sounds like something is getting sent at line 1. Make sure there are no spaces before the <? tag and no spaces in between that and the session_start() command. If there are no spaces it may be your text editor putting in invisible characters at the start of the document (happens on macs I think), if that's the case switch to another text editor and press backspace a few times at the very first line. Although dreamweaver shouldn't do this. Another thing you could do is write this "ob_start()" on the very next line following session_start() without spaces. This will stop the headers getting sent until the script has processed. You should try the other ones first though. If this works it will re-direct you to the new page as well. And that ID thing should be this...
Hope this helps, Blake Last edited by Blake121; May 16th, 2007 at 16:24. Reason: needed to add more content |
|
||||
|
Re: User authentication problems
Ok ... I got it working. I had
Oh yeah ... I forgot the ID Thanks for all you help! Last edited by karinne; May 17th, 2007 at 13:00. |
![]() |
| Tags |
| php, user authentication |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I'm a new user | offtheroad | Introduce Yourself | 7 | May 6th, 2008 07:40 |
| New ASP User | daygon | Classic ASP | 1 | Feb 15th, 2006 23:01 |
| Windows/IIS Authentication | pancho2389 | ASP.NET Forum | 0 | Jan 7th, 2006 09:34 |