Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    use strict;
    
  2. or download this
    $form_data = $ENV{'QUERY_STRING'};
    
    ...
    ($form_name, $candidate) = split (/=/, $fields[0]);
    ($form_name, $position) = split (/=/, $fields[1]);
    ($form_name, $education) = split (/=/, $fields[2]);
    
  3. or download this
    use CGI;
    
    ...
    my $candidate = $q->param('candidate');
    my $position = $q->param('position');
    my $education = $q->param('education');
    
  4. or download this
    $form_name > dataform.html
    
  5. or download this
    open(OUT, "> dataform.html") or die "Can't open file: $!";
    print "Candidate: $candidate\n";
    print "Position: $position\n";
    print "Education: $Education\n\n";
    close OUT;