1

I want to redirect the user to some url in other website, but to send with his redirect some post variable.. is this possible? And if yes, how?

Thanks.

Herbert
  • 5,698
  • 2
  • 26
  • 34
John
  • 437
  • 1
  • 8
  • 14
  • Similar to [PHP Redirect with POST data](http://stackoverflow.com/questions/5576619/php-redirect-with-post-data) – Herbert Sep 28 '11 at 05:38

1 Answers1

1

It is not. :(

You can however submit an hidden form using Javascript.

EDIT: shame upon me. It seems it can be achieved w/o Javascript. Try to post some data to a PHP page you write yourself, which basically tells the browser to do a 303 See Other redirect. It shall work, in the sense that the browser should re-POST the data on the redirection target, but someone reports this causes the browser to show a "really repost the data?" message, like the one you see if you refresh a web page you loaded with a POST.

However, even if it works, I think nobody does it.

gd1
  • 11,300
  • 7
  • 49
  • 88