You are here: Re: forwarding a form to another server « All PHP « IT news, forums, messages
Re: forwarding a form to another server

Posted by J.O. Aho on 12/21/05 13:41

AndrewF wrote:
> HI mate,
>
> Thanks for that, but unfortunately I have to POST the data rather than
> send it as a GET. I tried this one but the URI at the other end is
> expecting data to be posted... presumably for security reasons...

I haven't tested post redirections, so I'm not sure, but it's said that this
would work:

<?PHP
header("HTTP/1.0 307 Temporary redirect");
header("Location: https://www.example.com/sentopage.php");
exit;
?>

It should keep the post data and send that to the CC-payment-host.


If you have time to read the RFC that has to do with headers, you would easily
find how it's done without the HTTP-temp-redirection hack.


//Aho

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация