That seems much more complicated than I need.
I understand that the POST operation stores the data from the form in
the message headers... I just need to know which headers, so I can use
that information to write my own... I basically want to make it seem as
if the $failure var was POST'ed back to the page.
I'm having NO luck whatsoever with the HTTP RFC's... too thick =>
From: Philip Murray [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 29, 2001 6:06 PM
To: Ben Bleything
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: HTTP header question.
Quoting Ben Bleything <[EMAIL PROTECTED]>:
> I'm fully aware of that. The issue is not the refreshing (that works
> Here's a little more detail:
> // complain
> // show the form
> // take them to the next page
> // complain
> The //complain in the else section is this:
> Unset($login); // so it won't try to authenticate again
> $failure = true; // so the form knows to complain
> header("Location: login.php");
> Okay. So, just to clear things up, I'm not sending anything before
> this. This happens IMMEDIATELY after the user clicks on Submit...
> What I'm looking for is a way to do this such that the user does not
> anything more than http://host.name.here/rams/login.php in their
> bar when it failed... doing it the way I show above does not work, and
> the alternative ( header("Location: login.php?failure=true") ) does
> satisfy my requirement.
> So... anybody else?
<form name="loginFailure" action="login.php" method="POST">
<input type="hidden" name="failure" value="true">
[...any other data you want...]
// or document.forms['loginFailure'].submit();
It's untested, but you get the idea.
-------------------------------- - -- - - -
Philip Murray - [EMAIL PROTECTED]
http://www.open2view.com - Open2View.com
------------- - -- - -
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]