FaT3oYCG Posted November 15, 2009 Share Posted November 15, 2009 Hi, I recently found that I could grab a websites webpage and read the contents, this was great news for me as i wanted to include certain aspects of another site into my own, I then realised that I can just code that sites layout into my own. My new problem is that I want to submit the data from the form on my site to the other site which in return generates a link to the output and redirects you to that page, is there any way for me to obtain the generated link, submit the form from my website and then I would be able to file_get_contents(); the newly generated page? Quote Link to comment https://forums.phpfreaks.com/topic/181601-grab-output-from-another-websites-form-after-input/ Share on other sites More sharing options...
ram4nd Posted November 15, 2009 Share Posted November 15, 2009 Can't you put url in forums action field? Quote Link to comment https://forums.phpfreaks.com/topic/181601-grab-output-from-another-websites-form-after-input/#findComment-957899 Share on other sites More sharing options...
FaT3oYCG Posted November 15, 2009 Author Share Posted November 15, 2009 Yes, but I want to stay on my site, if I do that I get redirected to the site I am submitting to . Quote Link to comment https://forums.phpfreaks.com/topic/181601-grab-output-from-another-websites-form-after-input/#findComment-957903 Share on other sites More sharing options...
FaT3oYCG Posted November 15, 2009 Author Share Posted November 15, 2009 Anyone else got any ideas on this? Quote Link to comment https://forums.phpfreaks.com/topic/181601-grab-output-from-another-websites-form-after-input/#findComment-957976 Share on other sites More sharing options...
premiso Posted November 15, 2009 Share Posted November 15, 2009 Yes, you are going to want to look into curl as it can handle post data etc. Quote Link to comment https://forums.phpfreaks.com/topic/181601-grab-output-from-another-websites-form-after-input/#findComment-957978 Share on other sites More sharing options...
FaT3oYCG Posted November 15, 2009 Author Share Posted November 15, 2009 Thankyou ill look into curl later when I get some time, I'm currently in the process of coding my Admin page on my site so ill finish that and then take a look. I'll leave this unsolved until I come back when the problem is solved. Thanks. Craig. Quote Link to comment https://forums.phpfreaks.com/topic/181601-grab-output-from-another-websites-form-after-input/#findComment-957982 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.