I have the following script. I want HTML to call the CGI script so it outputs the last, first, and e-mail. How would I do that?
This does not work???
<form method action="/tsaoautomated.com/cgi-bin/script.cgi">
---
#!/usr/bin/perl -wT
use strict;
use CGI ':standard';
my $last;
my $first;
my $email;
$last = param("last");
$first = param("first");
$email = param("email");
open (FILE, ">> list.txt");
print FILE "$last, $first, $email\n";
close (FILE);
print "Content-type: text/html\n\n";
print "Thank you for submitting your information.";
print "U entered $last, ";
print "$first ";
print "$email";
This does not work???
<form method action="/tsaoautomated.com/cgi-bin/script.cgi">
---
#!/usr/bin/perl -wT
use strict;
use CGI ':standard';
my $last;
my $first;
my $email;
$last = param("last");
$first = param("first");
$email = param("email");
open (FILE, ">> list.txt");
print FILE "$last, $first, $email\n";
close (FILE);
print "Content-type: text/html\n\n";
print "Thank you for submitting your information.";
print "U entered $last, ";
print "$first ";
print "$email";
Comment