If I open the main.jsp file found in the html file, I find the appropriate form.... Here's snippets
Obvously the form is called "mainForm" and the fields are "userID" and "pword"
However, when I try to call the submit_form function, I get the following error:
There is no form named "mainForm" at /usr/lib/perl5/site_perl/5.8.8/WWW/Mechanize.pm line 1938
<form action="login.m?command=login" method="post" name="mainForm" enc
+type="application/x-www-form-urlencoded" target="_parent
<input type="hidden" id="escapeLdap" name="escapeLdap" value=""/>
<input name="do" type="hidden" value="login" />
...
...
...
<td align="right"><strong>User Name:</strong></td>
<td><input id="idField" name="userId" type="text" value="" onKeyPress=
+"return disableEnterKey(event);" autocomplete="off"/></td>
<tr><td align="right"><strong>Password:</strong></td>
<td> <input id="idPword" name="pword" type="password" value="" onKeyP
+ress="return disableEnterKey(event);" autocomplete="off"/></td>
</tr>
|