egonspengler3 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Everyone,
I am trying to use WWW::Mechanize to automatically fill out a web form.
Ordinarily, it is easy because $mech automatically numbers the <form></form> in order when it first gets the $url. But what if there is no <form></form>?
Ordinarily webforms follow this template:
<form> <input id="foo" type="" /> <input id="submit" type="submit" /> </form>
But what if it's only this:
<input id="foo" type="" /> <input id="submit" type="submit" />
- How do I fill in fields when they're not enclosed with <form></form>?
- Can I refer to those fields by their "id" in $mech because the "name=" attribute is not defined?
Back to
Seekers of Perl Wisdom