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? Link to comment https://forums.phpfreaks.com/topic/215163-auomatically-forward-data-once-you-enter-php-site/ 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 Link to comment https://forums.phpfreaks.com/topic/215163-auomatically-forward-data-once-you-enter-php-site/#findComment-1119091 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? Link to comment https://forums.phpfreaks.com/topic/215163-auomatically-forward-data-once-you-enter-php-site/#findComment-1119165 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.