Forum Moderators: phranque
I am working on a form for a leads generation site and I am having some issues with the form processing and the posting of the results.
I want to post to a third party lead collector, and they have given me a URL to do so. It looks something like this:
http://www.example.com/.../LeadImport.asmx/LeadReceiver
Everything works fine when I use that URL in the action of the form, and everything is posted through. The problem is, doing it this way the user is redirected to the above URL and away from my site.
What I need to do is have a form processing script that will take the post results, post to the URL, but redirect the user to a ThankYou page on my site.
I really have no idea how to write such a script though (I'm still a novice in all areas of programming).
Can anyone help me with this issue, get me started, or perhaps even provide code examples as to how this would be done?
Thanks!
EDIT: I just realized this might need to go in the PHP section... I don't know if I want to post there again though, I don't want to get in trouble.
[edited by: Whoopage at 8:10 pm (utc) on Mar. 3, 2008]
I want to post to a third party lead collector, and they have given me a URL to do so.
I think you may be missing something.
Usually, in that case, the third party will provide a means of redirecting back to your site. A URL or some kind of ID that you pass along with the other data.
Obviously, there has to be some kind of ID that you send them in any case.
Perhaps they simply haven't configured their database with your redirect URL?
Or, this could be done in an AJAX-y way with Javascript. I'd be surprised if the third party doesn't provide some Javascript to do this.
Usually, in that case, the third party will provide a means of redirecting back to your site. A URL or some kind of ID that you pass along with the other data
I have got to believe that the service provider has anticipated the need to redirect back to your site, and has provided some solution for you.
That's what I suppose you are missing.