I am having a problem with posted variables showing up on a redirected
page...
When someone access the page www.mydomain.com/mypage.html - it does not
actually exist so my 404 errordocument is called (which is the root
index.php file) - the index.php file knows what to do and creates an
not allow anyone to go to the site and view the behavior or view your html
to make sure everything is ok.
Jason
-Original Message-
From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 1:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] form posting to a fake page
I am having
.
Original Message Follows
From: SHEETS,JASON (Non-HP-Boise,ex1) [EMAIL PROTECTED]
To: '[ rswfire ]' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] form posting to a fake page
Date: Wed, 17 Apr 2002 15:29:56 -0400
I assume form works correctly if you go directly to your index page.
You
.
(Testing this with both IE and Netscape)
Jaime Bozza
-Original Message-
From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 2:36 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] form posting to a fake page
Yes it works fine if I access it directly
not the ideal
solution. Thank you.
Original Message Follows
From: Jaime Bozza [EMAIL PROTECTED]
To: '[ rswfire ]' [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: [PHP] form posting to a fake page
Date: Wed, 17 Apr 2002 14:46:23 -0500
Actually, I believe this is a browser problem
On Wednesday, April 17, 2002, at 03:36 PM, [ rswfire ] wrote:
Yes it works fine if I access it directly from index.php. The action
property is set appropriately. I believe the problem lies in the fact
that it is redirected in the background because the page is not real,
so I'm
On Wednesday, April 17, 2002, at 03:49 PM, [ rswfire ] wrote:
See, now that makes sense. So it sounds like there's really nothing
that can be done except to have it post directly to the index.php file
along with an environment variable indicating what page is posting the
data. This is
That's the way apache works - it's not specific to PHP. The same
happens under mod_perl, for example.
Redirects ALWAYS lose any posted information. You have to save the
form data a different way, such as in a session variable.
--
Barry Hoggard
Tristan Media LLC
e: [EMAIL PROTECTED]
p:
, but it works.
Original Message Follows
From: Erik Price [EMAIL PROTECTED]
To: [ rswfire ] [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] form posting to a fake page
Date: Wed, 17 Apr 2002 15:53:55 -0400
On Wednesday, April 17, 2002, at 03:49 PM, [ rswfire
On Wed, 17 Apr 2002, [ rswfire ] wrote:
It would still require some knowledge of the posted data. If someone clicks
a submit button, and it is posting to a page that doesn't really exist, then
when the index.php file gets called as a 404 errordocument, the posted
variables are already
$_POST[] variables do not exist on a redirected page; that's the problem!
Original Message Follows
From: Miguel Cruz [EMAIL PROTECTED]
To: [ rswfire ] [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] form posting to a fake page
Date: Wed, 17 Apr 2002 15:56:32 -0500 (CDT
[EMAIL PROTECTED]
To: [ rswfire ] [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] form posting to a fake page
Date: Wed, 17 Apr 2002 15:56:32 -0500 (CDT)
On Wed, 17 Apr 2002, [ rswfire ] wrote:
It would still require some knowledge of the posted data. If someone
clicks
: Miguel Cruz [EMAIL PROTECTED]
To: [ rswfire ] [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] form posting to a fake page
Date: Wed, 17 Apr 2002 16:00:17 -0500 (CDT)
Your error handler would read them and then construct a redirect
containing the form data in querystring format.
miguel
page to pick up the data from the database and
display it.
Hope this helps,
Hugh
- Original Message -
From: [ rswfire ] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, April 17, 2002 2:03 PM
Subject: Re: [PHP] form posting to a fake page
No, the error handler
]
To: [ rswfire ] [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] form posting to a fake page
Date: Wed, 17 Apr 2002 16:00:17 -0500 (CDT)
Your error handler would read them and then construct a redirect
containing the form data in querystring format.
miguel
On Wed, 17 Apr 2002, [ rswfire
property is called; server notices the page is not real
(Data is lost here)
3. Error handler is called
Original Message Follows
From: Miguel Cruz [EMAIL PROTECTED]
To: [ rswfire ] [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] form posting to a fake page
Date: Wed, 17
property to be ?login=attempt.
This really shouldn't be so complicated! :-)
Original Message Follows
From: Miguel Cruz [EMAIL PROTECTED]
To: [ rswfire ] [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] form posting to a fake page
Date: Wed, 17 Apr 2002 16:00:17 -0500 (CDT
On Wednesday, April 17, 2002, at 04:57 PM, [ rswfire ] wrote:
$_POST[] variables do not exist on a redirected page; that's the
problem!
They would exist if you were using a PHP script with header() to do your
redirect rather than an Apache feature. I think this is what Miguel,
and
?
Original Message Follows
From: Miguel Cruz [EMAIL PROTECTED]
To: [ rswfire ] [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] form posting to a fake page (another idea)
Date: Wed, 17 Apr 2002 16:29:40 -0500 (CDT)
Have a look at http://httpd.apache.org/docs/misc/rewriteguide.html which
From: Miguel Cruz [EMAIL PROTECTED]
To: [ rswfire ] [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] form posting to a fake page
Date: Wed, 17 Apr 2002 16:00:17 -0500 (CDT)
Your error handler would read them and then construct a redirect
containing the form data in querystring format
20 matches
Mail list logo