Reply to Re: POSTing data to a page without using a form submit.

Your name:

Reply:


Posted by Chung Leong on 08/16/06 17:23

Charlie King wrote:
> What I want to do is to have the browser go to the target page, with
> my variables, by POST. I.e. exactly as if the user had clicked on a
> [submit] button in a form whose action was POST and url was the target
> site.

Oops. Shouldn't have responded having read only half the post.

Try calling stream_get_meta_data() on the resource returned by fopen
and see what it contains. Often times an application would immediately
redirect to a GET page after a POST. If you redirect the user to that
link, then it'd work.

You can redirect a POST using the HTTP status code 307. Non-IE browsers
would show an alert box however.

[Back to original 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

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