Thank you.

I have run into a problem now with a checkbox. I'm not sure what I'm supposed to do to make it put a check in the checkbox, otherwise I don't think their server will give me remember me.

Their code is

><form method="post" action="login.php?sid=c51 +4c45f8ced1eae9f9eced24365bf48"> <table border="0" cellpadding="0" cellspacing="1" width="100%"> <tr> <td align="center"><span class="gensmall"> <input type="hidden" name="redirect" value="" /> Username:<br /> <input class="post" type="text" name="username" size="15" /> <br /> Password:<br /> <input class="post" type="password" name="password" size="15" /> <br /> </span> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><input class="text" type="checkbox" name="autologin" /></td> <td class="gensmall">&nbsp;Remember me</td> </tr> </table>
I got all of it working so far (I believe-- no errors anyway) but I get an error "Illegal value 'check' for field 'autologin' at ...".

Do you know how I can automate this? My code is below.

#!/usr/bin/perl use warnings; use strict; my $username = "test"; my $password = "test"; use CGI::Carp qw(fatalsToBrowser); use WWW::Mechanize; use CGI qw/:standard/; my $browser = WWW::Mechanize->new(); $browser->get("http://www.mwjz.com/phpbb/portal.php"); $browser->form(1); $browser->field("username", $username); $browser->field("redirect", ""); $browser->field("autologin", "check"); $browser->field("password", $password); $browser->click(); print header; print $browser->content();

In reply to Re^2: automated cookies by Anonymous Monk
in thread automated cookies by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.