pioneerx01 Posted October 4, 2010 Share Posted October 4, 2010 I have a html form that collect information such as [name], [address], (amongst others) and once you hit the submit button all the data you send to "thank_you.php" which dumps all the data from fields to the predefined database, as wwell as it telly you thank you for registering. What code do I need in order for "thank_you.php" to send [name] and fields automatically in the background to other page on different server (such as www.otherdomain.com/storage.php)? Is such a think possible? Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted October 4, 2010 Share Posted October 4, 2010 depends on how the other server will accept the data. if it's a simple GET, you might open the remote URL like file_get_contents("http://www.otherdomain.com/storage.php?name=$name&email=$email"); but if you have to POST the content, you'll probably want to use curl: http://php.net/manual/en/book.curl.php Quote Link to comment Share on other sites More sharing options...
pioneerx01 Posted October 5, 2010 Author Share Posted October 5, 2010 I am relatively new to php, so what does the =$email mean/do in the url? Quote Link to comment 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.