Jump to content

posting form variable using header()


chronister

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/63852-posting-form-variable-using-header/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.