perlquestion
egonspengler3
Hello Everyone,
<p>
I am trying to use WWW::Mechanize to automatically fill out a web form.
</p>
<p>
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>?
</p>
<p>
Ordinarily webforms follow this template:
<code>
<form>
<input id="foo" type="" />
<input id="submit" type="submit" />
</form>
</code>
</p>
<p>
But what if it's only this:
<code>
<input id="foo" type="" />
<input id="submit" type="submit" />
</code>
</p>
<p>
<ol>
<li>How do I fill in fields when they're not enclosed with <form></form>?</li>
<li>Can I refer to those fields by their "id" in $mech because the "name=" attribute is not defined?</li>
</ol>
</p>