in reply to form buttons
Then in your CGI the action parameter will be 'button1' or 'button2' or 'button3' depending on which is pressed.<input type="submit" name="action" value="button1"> <input type="submit" name="action" value="button2"> <input type="submit" name="action" value="button3">
you can then saymy $query = CGI::new(); #assign value to $action my $action = $query->param('action');
if ($action eq 'button1') { #do your thing }elsif ($action eq 'button2'){ #do another thing }
|
|---|