Help for this page

Select Code to Download


  1. or download this
    <input type="text" value="" name="buddyname"><br>
    <input type="radio" name="action" value="add"> Add Buddy <br>
    <input type="radio" name="action" value="remove"> Add Buddy <br>
    
  2. or download this
    my $action = $q->param('action'); # this is assuming you're using CGI.
    +pm;
    if ($action eq 'add') {
    ...
    else {
        &deleteBuddy;
    }