Hi All,
I have the following code which i'm trying out to make a feedback form:
but predictably it doesn't work... is there something else i need to do?
Also, i'd like to display a thank-you page to the user when they click "submit" - how would i go about doing that?
cheers
I have the following code which i'm trying out to make a feedback form:
Code:
#!/usr/bin/perl
use CGI;
# Create the CGI object
my $query = new CGI;
# Output the HTTP header
print $query -> header ( );
# Capture the form results
my $name = $query -> paranm("name");
my $email = $query -> param("email");
my $feedback = $query -> param("feedback");
# get data from fields and print to feedback text file
open (FEEDBACK, ">>feedback.txt");
print FEEDBACK "Name: $name\n";
print FEEDBACK "E-mail: $email\n";
print FEEDBACK "Feedback: $feedback\n\n\n";
close FEEDBACK;
but predictably it doesn't work... is there something else i need to do?
Also, i'd like to display a thank-you page to the user when they click "submit" - how would i go about doing that?
cheers