1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Rep Power

    Need help with buttons

    It's an easy question but I'm totaly new to perl so i need some help .
    my $formfiller = WWW::Mechanize::FormFiller->new();



    $agent->form_number(1) if $agent->forms and scalar @{$agent->forms};


    { local $^W; $agent->current_form->value('name', 'value'); };


    I use the script like that to form fill .. but the problem at submit button because there is too many submit buttons and the submit button isn't the first one so script choose another button. here is the HTML of my button

    <input id="gtSubmitButton" class="gtButton" type="submit" value=" Submit D ">

    Can anyone help me?
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2009
    Rep Power
    Mechanize has a method for specifically choosing which form is submitted...

    Free MP3 Dance Music Downloads

    To err is human; To really balls things up you need Microsoft!

IMN logo majestic logo threadwatch logo seochat tools logo