Re: Submitting form without JavaScript

From: Date: Mon, 06 Feb 2006 07:13:16 +0000
Subject: Re: Submitting form without JavaScript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-229917@lists.php.net to get a copy of this message
Hi Peter, Curl can do it. http://www.php.net/curl Peter Lauri wrote:
Best mailing list member, I have an external payment gateway provider (similar to PayPal) and need to send POST variables to them to initiate the Payment Process. Is there any function in PHP that can send POST variables to a URL without using <form> and then a javascript that submits it when the page is loaded? My dream is to have a function (or class) that would be used this way: $url="url_to_submit_post_variables_to"; $ps = new SubmitPost($url); $ps->addPostVar($name, $value); $ps->submitPost(); Anyone with ideas about this? Best regards, Peter Lauri


« previous php.general (#229917) next »