tarun Posted May 30, 2007 Share Posted May 30, 2007 Well... I Saw Something Like This submit.php?field1=test&field2=data&url=http://www.externalwebsite.com/handler.php&method=_post I Was Just Wondering How To Do It Any Help...? Thnx, Tarun Quote Link to comment https://forums.phpfreaks.com/topic/53625-use-php-to-submit-forms/ Share on other sites More sharing options...
utexas_pjm Posted May 30, 2007 Share Posted May 30, 2007 I would imagine that they are parsing the query string $_GET variables and making a separate HTTP request on the server side using CURL or sockets. Best, Patrick Quote Link to comment https://forums.phpfreaks.com/topic/53625-use-php-to-submit-forms/#findComment-265044 Share on other sites More sharing options...
tarun Posted May 30, 2007 Author Share Posted May 30, 2007 Is There Or Could You Provide An Example Please Thnx, Tarun Quote Link to comment https://forums.phpfreaks.com/topic/53625-use-php-to-submit-forms/#findComment-265045 Share on other sites More sharing options...
utexas_pjm Posted May 30, 2007 Share Posted May 30, 2007 Have a look at the Curl documentation on php.net: http://us.php.net/curl/ Quote Link to comment https://forums.phpfreaks.com/topic/53625-use-php-to-submit-forms/#findComment-265049 Share on other sites More sharing options...
tarun Posted May 30, 2007 Author Share Posted May 30, 2007 Thnx But Have You Got Any Examples Of What Im Looking To Do As Im Fairly New To PHP Quote Link to comment https://forums.phpfreaks.com/topic/53625-use-php-to-submit-forms/#findComment-265054 Share on other sites More sharing options...
tarun Posted May 30, 2007 Author Share Posted May 30, 2007 HOLD ON Ive Just Run A cURL Test And It Turns Out That AwardSpace.com Has Disabled cURL Quote Link to comment https://forums.phpfreaks.com/topic/53625-use-php-to-submit-forms/#findComment-265060 Share on other sites More sharing options...
per1os Posted May 30, 2007 Share Posted May 30, 2007 I am still confused on the question, if you want a secure way to pass data around POST works or you can use GET data in a way where you use an encryption/decryption function both sites know the encryption key, pass the data serialized and encrypted as a GET string and when it is received on the other end decrypt it and un-serialize the array of data and voila you have the data. If you can elaborate more on what you are getting at it would be helpful. Quote Link to comment https://forums.phpfreaks.com/topic/53625-use-php-to-submit-forms/#findComment-265122 Share on other sites More sharing options...
utexas_pjm Posted May 30, 2007 Share Posted May 30, 2007 submit.php?field1=test&field2=data&url=http://www.externalwebsite.com/handler.php&method=_post I think the OP wants to have values submitted to his server then POST those variables to an external website (as the url parameter suggests). The only way this can be accomplished is by parsing the HTTP request to your server (submit.php) and then forming another HTTP request to http://www.externalwebsite.com/handler.php either using Curl or sockets. This is what I took from the OP, maybe they could clarify. Patrick Quote Link to comment https://forums.phpfreaks.com/topic/53625-use-php-to-submit-forms/#findComment-265139 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.