Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.