How would I create a PHP script that completes and submits forms on third party websites
I'm building a web application that will automatically complete user forms online for many different websites. My guess is I will have to open windows through the system search for the form fields and post address, then auto post, but I have no 开发者_如何学编程idea where to start.
Sorry for this extremely vague (potentially naive) question.
i would take a look at using cURL . there's plenty of examples of submitting forms using it
Instead of remoting a browser or whatever you had in mind, you want to check out phpQuery
It allows to parse websites, extract forms, and issue requests (pseudo AJAX, needs some configuration).
精彩评论