chronister Posted August 8, 2007 Share Posted August 8, 2007 Hello all, I know I have seen it somewhere but cannot find how to do it right now. How do I use header to submit post vars "without" a form. The company I work for is using a 3rd party email marketing company (until I can get the time to build a system to bring it in house), and this company is working with me to keep the form, thank you and error page aspect on our site. I need to take the variable from the form and process them to do some validation and then send these post vars off to their page so it can be inserted into a database. They don't do any validation on their side with this setup so I want to do it on my side and use header() to submit the post vars. Thanks in advance. Nate Quote Link to comment https://forums.phpfreaks.com/topic/63852-posting-form-variable-using-header/ Share on other sites More sharing options...
NArc0t1c Posted August 8, 2007 Share Posted August 8, 2007 Curl could post data automatically. http://php.net/curl Look for something like POST or POSTFIELDS Quote Link to comment https://forums.phpfreaks.com/topic/63852-posting-form-variable-using-header/#findComment-318304 Share on other sites More sharing options...
chronister Posted August 9, 2007 Author Share Posted August 9, 2007 *bump* Quote Link to comment https://forums.phpfreaks.com/topic/63852-posting-form-variable-using-header/#findComment-319112 Share on other sites More sharing options...
teng84 Posted August 9, 2007 Share Posted August 9, 2007 How do I use header to submit post vars "without" a form. you cant do that Quote Link to comment https://forums.phpfreaks.com/topic/63852-posting-form-variable-using-header/#findComment-319113 Share on other sites More sharing options...
chronister Posted August 9, 2007 Author Share Posted August 9, 2007 what I mean by "without" a form is this.... my form is supposed to submit to http://www.3rd_party_url.com/page.php, this particular company does not generally allow a the customer to host the form and success/error pages. I have specially requested it, and they are obliging me. The problem is that they don't do any server side validation on the form, so I must do the validation once the form is submitted to my servers page and then post the values to their page without a form. It's a funky situation, but this is what I have been given. Thanks to NArc0t1c as I think cURL is going to be the solution for this. I am looking at the cURL library and checking out how to use it and it looks like it will do what I want, but if anyone else has a suggestion, then I am open Thanks, Nate Quote Link to comment https://forums.phpfreaks.com/topic/63852-posting-form-variable-using-header/#findComment-319122 Share on other sites More sharing options...
chronister Posted August 9, 2007 Author Share Posted August 9, 2007 *bump* *bump* Quote Link to comment https://forums.phpfreaks.com/topic/63852-posting-form-variable-using-header/#findComment-319479 Share on other sites More sharing options...
lemmin Posted August 9, 2007 Share Posted August 9, 2007 Try this: http://www.faqts.com/knowledge_base/view.phtml/aid/12039/fid/51 Quote Link to comment https://forums.phpfreaks.com/topic/63852-posting-form-variable-using-header/#findComment-319482 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.