If you all would like, I can post my code... I'm still looking for a solution. Matt has it right. I'm trying to go for a more professional looking thing... and I do want it to display a notice when the login fails. I have thought of another way to do it... but it's not pretty, so I'm still open to suggestions. A while back I posted a pseudo-code explanation of what it is... attached to this e-mail is the actual page... Hopefully it will either shed some light on my predicament or help you all to alert me to any major errors that are probably hiding in there => Thanks a pile, Ben -----Original Message----- From: Dave [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 8:05 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: HTTP header question. below >Some of the original message: >> still don't see the need to pass as a header... >> >> you avoid the http://his.website.com/rams/login.php?failure=true as you >just get >> login.php each time as far as the displayed URL. >> >> my opinion, let the scripting handle all the logic and ease off the header >> functions. > >The whole idea behind his point is so the user cannot see what's going on >behind the scenes. It's just another method of making it look more >professional. I understand that much, but don't see why he would want to do a header('filename') redirection at all in case of a failure? >It's not really a case of headers, Ben just wanted to know if it is at all >possible to use PHP to keep the URL from showing the query as opposed to >having to use JavaScript or anything else. > >People kept giving him different solutions to something he didn't need >solutions for -- he already had the verification and if-then's down in the >script... He just wanted one little thing about making the browser show only >the simple URL and not let it change. That's all. =) Understood. My point is that he appears to be using the wrong tool for the job, and solving a problem where if done otherwise would not exist. My impression is he is posting a login to a page and redirecting back to the login page if it fails with a "failure notice". Rather than that, my suggestion would be to keep the login page seperate, have it do the authentication, and only move from that page when it succeeds. This also allows him to reuse this code as necessary, and removes the need for any passing of header information, thus no problem. >What a confusing thread, eh? hehe.. At least if someone wants to read >something funny and understands the American Language, this is the thread to >read... I think if he had posted the code from tha pages he is using, that would have clarified things greatly. My mistake is taking his problem, and suggesting that he is trying to do a big workaround for a problem that if done differently wouldn't exist. Why reinvent the wheel. :) Cheers Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]