This is not working.... ----------------------------- This is my html code having more buttons with same name..### Previous form submission $agent->click('Button'); #### End my $form = $agent->current_form; my $update = $form->find_input('FormButton','view',4); my $request = $update->click($form); $agent->{req} = $request; $agent->_do_request;
Please post a solution. Regards<html> <head> <title>Account</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <form method="POST" action="abc.asp"> <div align="center"><center><table border="1" width="600" cellspacin +g="0" cellpadding="0"> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" +cellpadding="0"> <tr> <td width="100%" bgcolor="#000080"><font face="MS Sans Serif +" color="#FFFFFF"><small><strong> Account</strong></small></font></td> </tr> <tr> <td width="100%" bgcolor="#C0C0C0"><table border="0" width=" +100%" cellspacing="0" cellpadding="0"> <tr> <td width="57%"><font face="MS Sans Serif"> <input + type="submit" value="Find" name="FormButton" style="font-family: MS Sans Serif">&nb +sp; <input type="text" name="SearchAccount" size="17" style="font-family: MS Sa +ns Serif"></font></td> <td width="43%"><div align="right"><p><font face="MS San +s Serif"> <input type="submit" value="Apply" name="FormButton" style="fon +t-family: MS Sans Serif"> <input type="submit" value="Save" name="FormButton" style="font +-family: MS Sans Serif"> <input type="submit" value="View" name="FormButton" style="font +-family: MS Sans Serif"> <input type="submit" value="Close" name="FormButton" style="fon +t-family: MS Sans Serif"> </font> </div> </td> </tr> </table> </td> </tr> <tr align="center"> <td width="100%" bgcolor="#C0C0C0"><table border="0" width=" +100%" cellspacing="0" cellpadding="0"> <tr> <td width="28%"><font face="MS Sans Serif"> Sales +Reps</font></td> <td width="15%"><font face="MS Sans Serif"><input type=" +text" name="Sales_Rep" size="9" style="font-family: MS Sans Serif" value=""></font></td> <td width="15%"><font face="MS Sans Serif"><input type=" +text" name="Sales_Rep2" size="8" style="font-family: MS Sans Serif" value=""></font></td> <td width="17%"><font face="MS Sans Serif"><input type=" +text" name="Sales_Rep3" size="8" style="font-family: MS Sans Serif" value=""></font></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> </form> </body> </html>
In reply to How can i recognize a button having same name by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |