Collect form results and post to a two part form on external site

Greetings!

So I am fairly new to PHP and had a question that I’m hoping someone could help me out with. I am a field agent for a company and work to sign people up for a service. The service provider recently debuted a form on their web-site that would allow my potential clients to sign up and basically cut me out. I would like to create an identical form with a hidden field which would have me set as the referrer/field agent. I spoke with the company and while they can’t provide me an API for this they have no problem with me creating an identical form if I can get it to post the results to their site.

So I have been told that I want to accomplish this using cURL, but I am having trouble wrapping my head around this. I want to create the form as one page on my site. I want to collect the form data and store them as variables and upon posting, initiate my PHP script. From there, I would like to post the collected variables to the identical fields on the second form… Though the second form is two pages long requiring the user to hit “Next” to fill out the second part. Will this present a problem?

I would be very grateful and appreciate it if someone could help me with this task!!!

Thank you

Best,
J

Sponsor our Newsletter | Privacy Policy | Terms of Service