NYCPHP Meetup

NYPHP.org

[nycphp-talk] Repost Post Vars

Chris Shiflett shiflett at php.net
Wed Sep 17 16:41:25 EDT 2003


--- Jeff <jsiegel1 at optonline.net> wrote:
> Is there a way to repost Post variables

Yes.

> i.e., pass along Post data, along with a header location change?

No. :-)

To perform a POST with PHP, you have can do it manually:

http://shiflett.org/dev/php_post.phps

or you can use PEAR's HTTP request class:

http://shiflett.org/dev/pear_post.phps

or you can use cURL, and for some reason I don't have an example for that.

Please note that all of this code was written a long time ago and used to
search php.net for cURL (I think that's why I didn't have an example for that).
It should work fine or at least give you an idea of where to look.

Hope that helps.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/



More information about the talk mailing list