artech Posted October 26, 2010 Share Posted October 26, 2010 Hi, I'm working on a web application that will interact with an existing website from another company. On the other company's site, there will be a form (using POST) that has my web application as the action element. The user who clicked the submit button will be redirected to my site, where I need to receive the $_POST data from this form to process before redirecting into the web application. I have done work on the other side, using standard form posts to send data to another site, but I've never had to write the code for the receiving end. How do I receive the form data posted from the other website? Can I access the $_POST[''] array as I would with any normal same-site POST transaction? Please let me know if you need additional detail or if my question wasn't clear! I'm fast approaching deadlines and really appreciate your help! Thanks! Link to comment https://forums.phpfreaks.com/topic/216885-how-do-i-receive-php-form-post-data-and-redirected-user-from-another-website/ Share on other sites More sharing options...
BlueSkyIS Posted October 26, 2010 Share Posted October 26, 2010 Can I access the $_POST[''] array as I would with any normal same-site POST transaction? yes, unless the receiving host is configured to ignore POST's from off-site. i'd try it and see. Link to comment https://forums.phpfreaks.com/topic/216885-how-do-i-receive-php-form-post-data-and-redirected-user-from-another-website/#findComment-1126674 Share on other sites More sharing options...
artech Posted October 26, 2010 Author Share Posted October 26, 2010 Thanks BlueSky! If my host is configured to ignore POST's from off-site, how would I change this? I have full control over server settings, I'm just not sure what to look for. Thanks a mil! Link to comment https://forums.phpfreaks.com/topic/216885-how-do-i-receive-php-form-post-data-and-redirected-user-from-another-website/#findComment-1126681 Share on other sites More sharing options...
BlueSkyIS Posted October 26, 2010 Share Posted October 26, 2010 don't know off the top of my head. so: i'd try it and see. Link to comment https://forums.phpfreaks.com/topic/216885-how-do-i-receive-php-form-post-data-and-redirected-user-from-another-website/#findComment-1126688 Share on other sites More sharing options...
artech Posted October 26, 2010 Author Share Posted October 26, 2010 Thanks BlueSky I just tried this from another server I just set up. Worked with no problem Thanks again for your help! Link to comment https://forums.phpfreaks.com/topic/216885-how-do-i-receive-php-form-post-data-and-redirected-user-from-another-website/#findComment-1126694 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.