How to fill out forms automatically with PHP?

Asked

Viewed 5,564 times

-2

How to create a script to fill forms, paste text, all automatically?

There is a site where you have login and password, I want the Log script automatically and then post what was needed with the text I pre-defined, and the login and password are also pre-defined.

What should I study to do this?

Obs.: I want to make a script that does this with who register. So it can not be plugin.

  • The point is to test the forms?

  • The ideal would be to use a SERVICE of the site instead of trying what you propose. For security reasons, every serious website blocks any attempt to automatic scripted login in this way. You will never be able to do this in Stack Overflow or any Openid identity provider, for example.

  • I’m not sure I understand your question, but I’ll try. ?

  • How do I vote no? Make a comment.

  • @Joãoneto Po man, your question in no time reflected this. If you had informed us of this information from the beginning, we could have given you much better.

  • I recommend reading the question about PHP robots here from Stack Overflow, in case you want to automate.

Show 1 more comment

1 answer

3


One option is to create a script, which sends a POST for the form in question that you are filling out every day.

You can leave everything already filled and just run this script every day.

But why don’t you try doing it for the browser? I think it’s easier even for us developers.

I’ve used these two programs to fill out forms automatically, see if any are useful.

For Firefox: Web Developer Toolbar

Web Developer Toolbar

For Chrome: iMacros for Chrome

iMacros for Chrome

Responded?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.