I am having a problem with the formmail.pl script and getting my contact form to redirect to my thank you page and not to the default page of the script. Here are the changes that I have made to the script and my html code:
BEGIN
{
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 2;
$mailprog = '/usr/sbin/sendmail -oi -t -f mail@cre...';
$postmaster = '';
@referers = qw(www.cre...);
@allow_mail_to = qw(mail@cre...);
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %B %d, %Y at %H:%M:%S';
$style = '/css/nms.css';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$address_style = 0;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
From: mail@cre...
Subject: form submission
Thank you for your form submission.
END_OF_CONFIRMATION
HTML Code:
<input name="redirect" type="hidden" id="redirect" value="http://www.cre....com/thank_you.html"/>
Thank you for your help.