Re: Submitting form without JavaScript

From: Date: Mon, 06 Feb 2006 07:54:37 +0000
Subject: Re: Submitting form without JavaScript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-229924@lists.php.net to get a copy of this message
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?
You can submit pages to a url without using forms. there are several ways. check Snoopy class from sourceforge.net. but this is not an efficient way, because there are lot of redirection and responses and header informations with the payment gateway. Instead you should create a "confirmation" page. After submitting all the details of the form, php should then process it and create a "confirmation" page which the user has to again click to "confirm" the action. then the variables go to paypal via browser.
My dream is to have a function (or class) that would be used this way:
"dream"...really?.. mine is to own a merc. -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India

« previous php.general (#229924) next »