Forum Moderators: coopster

Message Too Old, No Replies

How do I send POST through PHP?

         

Clinton Labombard

9:46 pm on Feb 13, 2006 (gmt 0)

10+ Year Member



header(); sends as GET, but is there a way to send data through a POST method with PHP, or am I forced to use a cookie to hide the data?

Dijkgraaf

11:33 pm on Feb 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use a FORM to post to a PHP file, and then you use
$_POST['paramname'] to get the values

Clinton Labombard

1:27 am on Feb 14, 2006 (gmt 0)

10+ Year Member



You misunderstood. I have variables to send from a PHP script, but I want to send them in POST form to another script.

willybfriendly

1:49 am on Feb 14, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can try sockets:

[webmasterworld.com...]

Other ideas are here (PERL, but some are transferrable):

[webmasterworld.com...]

WBF

eeek

2:06 am on Feb 14, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm not real sure what you are actually looking for but curl might do what you want.

Clinton Labombard

2:09 pm on Feb 14, 2006 (gmt 0)

10+ Year Member



Hm... using a socket sounds very appealing. Eeek, I'll definitely look into CURL. Thanks for the info, both of you.