Needalittlehelp
Technical User
My form isn't working and I get the error:" 1 Bareword "CGI:arse_form_data" not allowed while "strict subs" in use line 18. "
Can anyone see how to fix it?
Thanks so much!
Can anyone see how to fix it?
Thanks so much!
Code:
#!/usr/local/bin/perl
use strict;
# Let's have some fun my'ing things, shall me?
my $query;
my %form;
my $sendmail;
my $webmaster;
my $thanks;
use CGI;
$query = new CGI;
print $query->header;
%form=CGI::parse_form_data;
$sendmail = '/var/qmail/bin/qmail-inject';
$webmaster = 'webmaster@email.com';
$thanks = "Thank you for visiting my website! Things are always changing so I hope you pop back again! If you asked any questions, please allow upto 24 hours for a response.\n";
# $signame = 'Aaron Anderson\n';
# $sigurl = '[URL unfurl="true"]www.yourdowmain.com\n";[/URL]
# Mail to Webmaster
open (MAIL, "$sendmail -t") || die "Can't access $sendmail\n";
print MAIL "To: $webmaster\n";
print MAIL "From: $form{'usermail'}\n";
print MAIL "Subject: Insert subject here!\n\n";
print MAIL "$form{'username'}\n";
print MAIL "$form{'userweb'}\n";
print MAIL "$form{'message'}\n";
print MAIL "Remote IP address: $ENV{'REMOTE_ADDR'}\n";
close (MAIL);
# Mail to User
open (MAIL, "$sendmail -t") || die "Can't access $sendmail\n";
print MAIL "To: $form{'$usermail'}\n";
print MAIL "From: $form{'$weburl'}\n";
print MAIL "Subject: Thank you for signing my form!\n\n";
print MAIL "$thanks\n";
print MAIL "You said:\n";
print MAIL "$form{'message'}\n";
close (MAIL);
print $query->redirect(-uri=>"[URL unfurl="true"]http://www.somewhere.com/");[/URL]