"Daniel Tryba" <news_comp.lang.php@canopus.nl> wrote in message
news:c6cjpj$5sn$2@news.tue.nl...[color=blue]
> Chung Leong <chernyshevsky@hotmail.com> wrote:[color=green][color=darkred]
> >> The login info I retreive needs to be POSTed to another site.[/color][/color][/color]
Everything[color=blue][color=green]
> > is[color=darkred]
> >> beautiful, except now I don't know how to go about it..
> >>
> >> I could use Location: URL but I have to chuck on the login info in the[/color][/color][/color]
URL[color=blue][color=green][color=darkred]
> >> which would then be visible to the naked eye.
> >>
> >> Is there a way to POST it.. ? Been a while since I messed with web[/color][/color][/color]
stuff[color=blue][color=green]
> > so[color=darkred]
> >> any help appreciated.[/color]
> >
> > Use the HTTP status code 307:
> >
> > header("HTTP/1.0 307 Temporary Redirect");
> > header("Location: http://www.example.com/");
> >
> > When the incoming request is a POST, the browser post to the redirected[/color][/color]
page[color=blue][color=green]
> > as well. Note that in some non-standard browsers a warning would appear.[/color]
>
> My guess is this is not what the OP acutally wants. Unless he wants to
> redirect the browser to the other site (in that case pointing the action
> directly to the site might be easier).[/color]
It's a bit more than that. I need to check a radio option that the user
selects, and then the form data they entered gets posted to the site
depending on what radio option they selected.
[color=blue]
> My guess is that he wants to do the post from within his own php, in
> that case he could take a look at curl, snoopy
> (
http://sourceforge.net/projects/snoopy/) or an code snipper I once
> posted here
> (
http://groups.google.com/groups?selm...%40news.tue.nl)[/color]
Thanks for your help.