|
Posted by Al on 01/21/06 01:05
windandwaves wrote:
> Doing
> the header function means that you loose the posted variables as posts so
> that you have to post them again. Can you do something like this:
> header(post-type, $_POST), basically directly reposting all posted variables
> to a new location?
Well yes, it loses the informaiton as POSTs but you can recreate them
as GETs and send them on their way in a header("Location: ");
But if you want to resend as POSTs I think it's mildly impossible. I'm
pretty sure you can't do it your way. The header() command just adds
stuff the to header being sent back to the user, rather than the header
of the redirected request, unfortunately :)
I think the javascript way seems to be your only chance, and it's not
particularly invasive. Plus if people have javascript disabled then you
can default to my POST -> GET code and at least TRY to fulfil the silly
non-javascript-user's request :)
So yeah, employ both methods?
Navigation:
[Reply to this message]
|