checbox problem

Discussion in 'Perl Misc' started by Bond, Sep 15, 2007.

  1. Bond

    Bond Guest

    How to select checkbox form perl with www::mechanize, what value is for
    true?
    I tray with OK, true, Yes, Selected, and get that is false value for button.

    <form action="/pc/index.pl" method="post" name="payment" id="payment">
    <input class="loginTextBox" type="checkbox" id="ok" name="user_agreed" />
    <label for="ok">I agree</span></label>

    Help me to solve this problem.

    Thanks
     
    Bond, Sep 15, 2007
    #1
    1. Advertising

  2. Bond <> wrote:
    > How to select checkbox form perl with www::mechanize, what value is for
    > true?


    ><input class="loginTextBox" type="checkbox" id="ok" name="user_agreed" />



    $mech->tick('user_agreed', 'on');


    --
    Tad McClellan
    email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
     
    Tad McClellan, Sep 15, 2007
    #2
    1. Advertising

  3. Bond

    Mumia W. Guest

    On 09/15/2007 04:14 AM, Bond wrote:
    > How to select checkbox form perl with www::mechanize, what value is for
    > true?
    > I tray with OK, true, Yes, Selected, and get that is false value for button.
    >
    > <form action="/pc/index.pl" method="post" name="payment" id="payment">
    > <input class="loginTextBox" type="checkbox" id="ok" name="user_agreed" />
    > <label for="ok">I agree</span></label>
    >
    > Help me to solve this problem.
    >
    > Thanks
    >
    >


    The documentation for WWW::Mechanize says to use the 'tick' method. If
    you installed the module using ActiveState, the documentation for that
    module should be in the ActiveState help menu system.
     
    Mumia W., Sep 15, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Suurkuusk
    Replies:
    0
    Views:
    4,038
    Andreas Suurkuusk
    Jul 27, 2003
  2. Ted Miller
    Replies:
    0
    Views:
    5,227
    Ted Miller
    Sep 13, 2003
  3. Merek
    Replies:
    0
    Views:
    2,002
    Merek
    Dec 3, 2003
  4. John Dalberg

    Can't center a checbox in a datagrid column

    John Dalberg, Dec 27, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    536
    Teemu Keiski
    Dec 27, 2005
  5. Mike

    Problem problem problem :( Need Help

    Mike, May 7, 2004, in forum: ASP General
    Replies:
    2
    Views:
    582
    Bullschmidt
    May 11, 2004
Loading...

Share This Page