in reply to How to set Form action attribute using WWW:Mechanize

WWW::Mechanize will give you HTML::Form objects, so you can manually set the action attribute like this:
my $form = $mech->current_form(); $form->action($new_action);

Replies are listed 'Best First'.
Re^2: How to set Form action attribute using WWW:Mechanize
by wiseleyb (Initiate) on Jun 26, 2005 at 04:39 UTC
    Thanks SO much - duh - I guess I should have gotten that :) Stupid C# coders - Perl isn't for kids. :) On the off chance someone is as novice as me, on top of what the person suggested above... this is what worked:
    #where $agent = WWW::Mechanize->new(); my $form = $agent->form_name('someformname'); $form->action('http://www.something.com/someform'); $agent->submit(); #doing a $form->submit(); - gives you a funny "unblessed #error" which took me a while to grok