louis_coetzee Posted July 14, 2009 Share Posted July 14, 2009 Hi, I would like to know if it is possible to post from one website to another using $_POST[] For example: send username variable form www.k.co.za to www.h.co.za and actually getting it to say for example echo the $_post variable....if not how can I solve this, the string will be too long to use $_get Quote Link to comment https://forums.phpfreaks.com/topic/165942-post-from-one-website-to-another/ Share on other sites More sharing options...
premiso Posted July 14, 2009 Share Posted July 14, 2009 Look into curl as that should provide you with what you are looking for. Quote Link to comment https://forums.phpfreaks.com/topic/165942-post-from-one-website-to-another/#findComment-875217 Share on other sites More sharing options...
phporcaffeine Posted July 14, 2009 Share Posted July 14, 2009 Louis, PHP's cURL library will allow you to do what you want but requires a learning curve and non-core dependencies which may not be available on 3rd party hosts. Another alternative is to make a POST request with PHP by making a socket connection. You can find a ready made script for this at: http://codetree.rthconsultants.com/2009/07/php-make-a-post-request-to-a-url/ Quote Link to comment https://forums.phpfreaks.com/topic/165942-post-from-one-website-to-another/#findComment-875218 Share on other sites More sharing options...
louis_coetzee Posted July 14, 2009 Author Share Posted July 14, 2009 Thanks a lot guys, I will look into this. Quote Link to comment https://forums.phpfreaks.com/topic/165942-post-from-one-website-to-another/#findComment-875221 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.