Jump to content

Recommended Posts

Hey all - new to the site and could really use some help.

 

My situation:  I have a form that needs to post results to a specific URL (which is on a different server and I have no control over).  Essentially it is a lead generating form...

 

But after I post to the URL, I want it then to redirect back to a page on my site, a thank you page.

 

I believe I need some sort of form processing script, where the form results are processed, sent to the URL and then the script redirects or displays a Thank you message.

 

I don't know how to write such a script though.

 

I know that the form action will need to call the script, but I don't know how to pass the results to the processing script nor how to make the script then POST them to the URL.

 

Any help would be greatly appreciated - Thanks!

Link to comment
https://forums.phpfreaks.com/topic/93411-help-with-form-post-and-redirect/
Share on other sites

I presume that the page you are redirecting to will add the lead generation to their own database as you cannot update a database that your server cannot access.

 

As far as I know you will need the page on the other server to redirect back to your site.

 

I would suggest contacting the site owner of the other website and ask how it is best to implement what you want to do.

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.