in reply to Re: trouble filling out HTML form
in thread trouble filling out HTML form

Note that with Ovids solution you *may* have to parse out and include some or all of the hidden fields in the form as well as adding the user/pass fields, otherwise the login may fail.

Additionally the login STATE may be maintained by hidden fields in subsequent pages (you need to parse them out and add them into subsequent post login requests) or a SESSION COOKIE which you need to accept, save and pass with each post login request.

They forgot to specify the type for the UserID input box

You don't have to, the practical default is text

If you think about the transaction there is no data passed from browser to server about the type of field so provided the browser will render it you have no issue in the real world.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: Re: trouble filling out HTML form
by diablo1024 (Initiate) on Oct 23, 2003 at 19:21 UTC
    Thanks very much, tachyon and Ovid. Mech is in fact much better suited to this task than the old HTTP::Request and HTML::TreeBuilder modules I was using before. You perl monks are wise indeed.