lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** RE: [PHP] Header() - POST
- Date: Fri, 5 Sep 2008 11:11:22 -0500
- From: "Boyd, Todd M." <tmboyd1@xxxxxxxx>
- Subject: ***BOGO*** RE: [PHP] Header() - POST
> -----Original Message-----
> From: Dan Joseph [mailto:dmjoseph@xxxxxxxxx]
> Sent: Friday, September 05, 2008 10:59 AM
> To: PHP General
> Subject: Re: [PHP] Header() - POST
>
> On Fri, Sep 5, 2008 at 11:48 AM, Wolf <lonewolf@xxxxxxxxx> wrote:
>
> > <!-- SNIP -->
> > > scrubbing them, and rebuidling the post string and trying to
> resubmitt it
> > > using headers(). I'm getting this error:
> >
> > Why do you want to re-submit it?
> >
> > Why not just parse it in the same page?
> >
> > If not that, then use sessions and set the information, do a meta-
> refresh
> > to redirect to the processing page, then use the processing page to
> pull the
> > session information and make sure it came from the correct page.
> >
> > HTH,
> > Wolf
> >
>
> Hmm good question on why I am re-submitting to a new page. Honestly,
I
> have
> no good answer for that other than I have been rushing this part of
the
> system for two days to get it done.
>
> I didn't think of Sessions, that's actually not a bad idea at all. I
> am
> going to re-think the re-submitting thing, and if I stick with it,
I'll
> give
> our session idea a shot.
I think what Wolf was getting at is... if the data you're scrubbing is
being re-submitted to the same page, why re-submit it at all? Why not
just scrub it and then do whatever it is you want to do with it instead
of putting an extra step in-between?
I see your model like this:
1.) Get POST data
2.) Scrub POST data
3.) Re-submit POST data
4.) Deal with POST data
Whereas I'm getting at this:
1.) Get POST data
2.) Scrub POST data
3.) Deal with POST data
Todd Boyd
Web Programmer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php