The following is the code inside the html.
<body onLoad="getSearch();getUserSettings();callonLoad();">
<form>
<p> </p>
<table width="775" border="0" align="center" cellpadding="0" cellsp
+acing="0" bgcolor="#FFFFFF">
<tr>
<td><img src="/userportal/pages/usermedia/inventumtest.1/images/
+top.jpg" width="775" height="111"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding=
+"0">
<tr>
<td width="33%"><div align="center"><img src="/userportal/
+pages/usermedia/inventumtest.1/images/lady.jpg" width="161" height="2
+00"></div></td>
<td><table width="240" height="150" border="0" align="cen
+ter" cellpadding="0" cellspacing="0" background="/userportal/pages/us
+ermedia/inventumtest.1/images/TableBG.jpg">
<tr>
<td valign="top"><table width="100%" height="100%" bo
+rder="0" cellpadding="1" cellspacing="1">
<tr>
<td colspan="2" class="loginBoxMainStyle"><div a
+lign="left"> Login</div></td>
</tr>
<tr>
<td class="loginBoxTextStyle"><div align="right"
+>Service Type :</div></td>
<td> <select name="type" class="loginBoxTextStyl
+e"><option value="1">Check Account Details</option></select>
</td>
</tr>
<tr>
<td class="loginBoxTextStyle"><div align="right"
+>Login ID : </div></td>
<td><input type="text" name="username" value=""
+class="loginBoxFormTextStyle"></td>
</tr>
<tr>
<td class="loginBoxTextStyle"><div align="right"
+>Password : </div></td>
<td><input type="password" name="password" value
+="" class="loginBoxFormTextStyle"></td>
</tr>
<tr>
<td colspan="2" class="loginBoxTextStyle"><div a
+lign="center">
<input type="checkbox" id="rememberme" name="rememberme" >Remember Me
+</div></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="button" value="Login" class="loginBoxTextStyle" onclick="
+return savesettings();"/>
</div></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="33%"><table width="100%" border="0" cellspacin
+g="0" cellpadding="0">
<tr id="popup" style="display:none">
<td><table width="240" height="150" border="0" align=
+"center" cellpadding="0" cellspacing="0" background="/userportal/page
+s/usermedia/inventumtest.1/images/TableBG.jpg">
<tr>
<td valign="top"><table width="100%" height="100%"
+ border="0" cellpadding="1" cellspacing="1">
<tr>
<td colspan="2" class="loginBoxMainStyle"><d
+iv align="left"> Session Details </div></td>
</tr>
<tr>
<td class="loginBoxTextStyle"><div align="ri
+ght">Start Time : </div></td>
<td><INPUT TYPE=TEXT NAME="start" SIZE=17 va
+lue="18/06/2008 09:24:55" readonly></td>
</tr>
<tr>
<td class="loginBoxTextStyle"><div align="ri
+ght">Duration : </div></td>
<td><INPUT TYPE=TEXT NAME="duration" SIZE=17
+ readonly></td>
</tr>
<tr>
<td class="loginBoxTextStyle"><div align="ri
+ght">Balance :</div></td>
<td><INPUT TYPE=TEXT size="17" NAME="subs" v
+alue="" readonly></td>
</tr>
<tr>
<td class="loginBoxTextStyle" colspan="2">
<b>Your Internet Session Active</b>
<a href="/userportal/logout.do">
+Click Here To Logout</a></td>
</tr>
<tr>
<td class="loginBoxTextStyle"><div align="ri
+ght"></div></td>
<td> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="/userportal/pages/usermedia/inventumtest.1/images/
+inventlogo.png" width="140" height="43"></td>
</tr>
<tr>
<td bgcolor="#336699"><div align="center" class="loginBoxTextSty
+le"><font color="#ffffff">Powered by SSG Unify <a href="http://www.in
+ventum.cc"><font color="#ffffcc"> (c) Inventum Technologies Pvt. Ltd.
+</font></a></font></div></td>
</tr>
</table>
<INPUT TYPE=hidden NAME="clock">
</form>
I have tried every number in the block (1..x) but ...
script says: There is no form numbered 4 at autologin.pl line 45
Died at /usr/lib/perl5/site_perl/5.8.8/WWW/Mechanize.pm line 1724.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|