WizardWorkz
01-07-2004, 11:08 PM
Hey Everyone... I'm finally falling down and giving up... can anyone tell me why this will not automatically redirect to the HTML page I have at the bottom of this script?
#!/usr/bin/perl -w
use strict;
use CGI ':standard';
#####################################################
##This script was programmed by Virgil G. Mandanici #
##at WizardWorkz www.wizardworkz.com #
##.....gimme a link if ya can! #
#####################################################
my $email;
my $to;
my $from;
my $subject;
my $message;
my $sendmail;
my $sendmailpath;
$email = param('email');
$to = param('to');
$from = param('from');
$subject = param('subject');
$message = param('message');
$sendmail = param('sendmail');
$sendmailpath = param('sendmailpath');
$from="email";
$to="virgil\@wizardworkz.com";
$subject="Someone requested documents";
$sendmailpath="/usr/sbin/sendmail";
$message = "Here is the contact info from your web site\n
Email: $email\n
Add to your mailing list Virgil! \n";
open (SENDMAIL, "| $sendmailpath -t") or die "Cannot open $sendmail: $!";
print SENDMAIL "Subject: $subject\n";
print SENDMAIL "From: $email\n";
print SENDMAIL "To: $to\n\n";
print SENDMAIL "$message";
close (SENDMAIL);
open(HTML,"<http://www.dogtrax.net/freeMusica.html");
#### I don't know why it won't work. Any help would be really appreciated.
Thanks!;)
#!/usr/bin/perl -w
use strict;
use CGI ':standard';
#####################################################
##This script was programmed by Virgil G. Mandanici #
##at WizardWorkz www.wizardworkz.com #
##.....gimme a link if ya can! #
#####################################################
my $email;
my $to;
my $from;
my $subject;
my $message;
my $sendmail;
my $sendmailpath;
$email = param('email');
$to = param('to');
$from = param('from');
$subject = param('subject');
$message = param('message');
$sendmail = param('sendmail');
$sendmailpath = param('sendmailpath');
$from="email";
$to="virgil\@wizardworkz.com";
$subject="Someone requested documents";
$sendmailpath="/usr/sbin/sendmail";
$message = "Here is the contact info from your web site\n
Email: $email\n
Add to your mailing list Virgil! \n";
open (SENDMAIL, "| $sendmailpath -t") or die "Cannot open $sendmail: $!";
print SENDMAIL "Subject: $subject\n";
print SENDMAIL "From: $email\n";
print SENDMAIL "To: $to\n\n";
print SENDMAIL "$message";
close (SENDMAIL);
open(HTML,"<http://www.dogtrax.net/freeMusica.html");
#### I don't know why it won't work. Any help would be really appreciated.
Thanks!;)