Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to submit using the 1st option, "Retrieve to screen". My current code:<input name="screen" type=submit value="Retrieve data to screen"> <input name="email" type=submit value="Retrieve data by email"> <input name="ftp" type=submit value="Retrieve data by ftp">
Is submitting the data to the url ok and generating a response. However the response claims that I have not chosen where the data is to displayed (eg. one of the buttons). I think this might be happening because I am not submitting values for 'ftp' or 'email' values. I have tried submitting "", but I'm not having much luck. What is the correct way to handle multiple submit options? Is there something obvious I have missed? Thanks!my $response = POST $form_url, [ some => "options", screen => "Retrieve data to screen", ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP Multiple Submit Buttons
by Corion (Patriarch) on Jul 16, 2004 at 11:30 UTC | |
by Anonymous Monk on Jul 16, 2004 at 11:50 UTC | |
by Corion (Patriarch) on Jul 16, 2004 at 11:57 UTC | |
by Anonymous Monk on Jul 16, 2004 at 12:11 UTC | |
by Anonymous Monk on Jul 16, 2004 at 12:13 UTC |