Filling Website Form and Submitting

Hi,

How can i programmatically fill the form on website open on htmlviewer and click on the submit button?

Thanks

The best way of doing this would be to use an HTTPSocket.Post instead. I don’t think you can “hijack” the form in an HTMLViewer.

You can fill it. Use Javascript for this to do this.
But doing it directly with HTTPSocket is often better.

it does depend on the form, some are easy and some are near impossible.

a simple way is www.site.com?Name=yourName&surname=yourSurname etc…

if you look at the code for the site you will see what it requires. On some site you have the option of right clicking on Submit ( if it is a link) and selecting open in new tab, you will then see exactly what is being sent.

Hope this is what you meant :slight_smile:

Damon