in reply to Re: Getting a form filler to work for letssingit.com
in thread Getting a form filler to work for letssingit.com

Which means you (the OP) should be using:
... my $url = "http://www.letssingit.com/frame_menu.html"; my $query = ...; ... $mech->submit_form( form_name => 'search', fields => { s => $query, l => 'song', # or 'artist' or 'album' or 'lyrics'. # The only button doesn't have a name, so no # need to put anything here for the button. }, ); ...

Replies are listed 'Best First'.
Re^3: Getting a form filler to work for letssingit.com
by Anonymous Monk on Apr 13, 2005 at 02:28 UTC
    Hi. Thanks for the updated code I have one last question.

    I need to know what's on the page now so I'm trying to do a page dump using $mech->uri() but it's printing out a URL instead of the HTML and all that. What do I use to get the page to load?

      That's what $mech->uri() does. Perhaps you need to read the WWW::Mechanize documentation a bit more carefully?
        I did go back and read it but now it tosses itself into an enless loop! I feel bad for my webhost about now :(
        my @test = $mech->content(); foreach (@test) { print "$_\n"; }
        Without this code it loads nothing but it shows a white page. Using this code reloads MY page a hundred and fifty million times. It doesn't print the content of their page at all.