Re: form posting to a fake page

From: Date: Wed, 17 Apr 2002 21:00:17 +0000
Subject: Re: form posting to a fake page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93398@lists.php.net to get a copy of this message
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 ] wrote: > $_POST[] variables do not exist on a redirected page; that's the problem! > > ----Original Message Follows---- > From: Miguel Cruz <mnc@stoic.net> > To: "[ rswfire ]" <rswfire@hotmail.com> > CC: php-general@lists.php.net > 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 > > 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 lost, so it wouldn't be possible to access the > posted > > variables in any fashion. The only possibility might be if Apache had > some > > way of dealing with this scenario and I am not that familiar with how > Apache > > works. And so, that leaves me with the only workaround I do know, post > to a > > page that does exist! It's just not the ideal solution, but it works. > > Well, depending on the quantity of posted data, you could go through > $_POST[] and turn them into GET args and pass them along to the > appropriate page (not that I really understand what you're trying to do). > > miguel > > > > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com9į›k™D¥ > G\¤Ò+UÄ > >

« previous php.general (#93398) next »