Help for this page

Select Code to Download


  1. or download this
    <input type="submit" name="action" value="button1">
    <input type="submit" name="action" value="button2">
    <input type="submit" name="action" value="button3">
    
  2. or download this
    my $query = CGI::new();
    #assign value to $action
    my $action = $query->param('action');
    
  3. or download this
    if ($action eq 'button1') {
    #do your thing
    }elsif ($action eq 'button2'){
    #do another thing
    }