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

More important - the error says:
"There is no form named "search""
You can check forms' names with:
>mech-dump http://www.letssingit.com >mech-dump http://www.letssingit.com/frame_menu.html GET http://www.letssingit.com/frame_menu.html [theClock] theTime= POST http://www.letssingit.com/cgi-exe/am.cgi [search] s= l=artist (option) [*artist/artistname|album/albumname|song/songname|lyrics|fanpage] <NONAME>=GO (submit) a=search (hidden) p=1 (hidden)


Replies are listed 'Best First'.
Re^2: Getting a form filler to work for letssingit.com
by ikegami (Patriarch) on Apr 12, 2005 at 23:29 UTC
    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. }, ); ...
      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?