thefortrees Posted November 5, 2007 Share Posted November 5, 2007 Hi all, I am tasked with creating a script that takes data submitted in a form on my site, goes to an external site, and populates the fields. For example, if I am at www.mysite.com, I fill out a form with my data (name, address, etc). On form submission, user is redirected to www.someotherdudessite.com and the fields are populated with data from my form. Any ideas where to start? Quote Link to comment Share on other sites More sharing options...
severndigital Posted November 5, 2007 Share Posted November 5, 2007 not really sure you can do this with php as it is a server side language. you would need access to the other websites back end. you might be able to accomplish something with Javascript as it is a client side language. Not to sure about the security of it though, and there are alot of variables that come into play. i.e. the name of the text field in the form would have to match that of yours. etc.. Interesting little script though, if you can get it working. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted November 5, 2007 Share Posted November 5, 2007 You can submit the form on the external site using cURL. But i dont think you will be able to re-direct to their site and have the form 'pre-filled' but not submitted. I'm not too sure why you'd want to either. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.