Battle_Fury has asked for the wisdom of the Perl Monks concerning the following question:

Previously, I posted abt a 'Button Not Clickable' error but ended up solving it by using the POST method with the help of Live HTTP Header.
However I got a couple of replies telling me to change the form action before submitting the form as the action had been changed in the source code before navigating to the next page.

1) Can anyone temme how to change the Form action attribute while using WWW::Mechanize to submit a form? (Noob in Perl :P)

2) Secondly, I'm on a web page now that has a small image, which upon clicking opens a dialog box to prompt me where to save a file on my comp. Once again, there is a form on this page with various fields of type "hidden" & the form action is changed here again before going to the dialog box. I've pasted a part of the code here. Pls lemme know how, after changing the form action, can I download the file, i.e Will it do it automatically once I submit or do I need to use any other functions..
Thanks

function ExportToExcel() { document.frmSubNets.action = "./IPAllocSubNetsExcel.asp"; document.frmSubNets.submit(); return true; } // THE ABOVE IS WHERE THE FORM ACTION IS CHANGED & SUBMITTED AFTER WHI +CH THE DIALOG BOX IS OPENED <Form Name=frmSubNets Method=Post Action="./IPAllocSubNets.asp"> <Br> <Center> <Table Width=95% Align=Center border=0 cellspacing=1 cellpadding=1> <Tr><Td><A Href="javascript:ExportToExcel();"><IMG SRC=".. +/images/miniexcel.gif" name="Excel" size="15" border=0><A></Td></Tr> <Tr> <Td Colspan=3><INPUT type="button" value="Select A +ll" name=btnCheckAll onClick="btnCheckAll_onClick(this);"></Td> <Td Colspan=4 nowrap align=center><Font face=verda +na color=#0000ff size=2>Join Function only works when sorted on Subne +t Column.</Font></Td> </Tr> <Tr class="TableMainRow"> <Td class="TableMainRow" Align=Center ColSpan=30> <Font face=verdana color=ffffff size=2><B>Sub Nets +</B></Font> </Td> </Tr> <Input Type=Hidden Name=SubnetId107 Value="760899"> <Input Type=Hidden Name=Subnet107 Value="10.183.18.100/30"> //A LOT LIKE THE ABOVE 2 LINES FOLLOW & PRECEDE... .... </Form>