function show_form($email="",$message="",$subject="") { ?>
We enjoy hearing from you. Send us your compliments, criticism, ask a question, or make a suggestion for something you want to see on this site.
} // close function
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
if (isset($fjemail))
{
$email = "signup@freebiejunkie.com";
$message2 = "You must reply to this e-mail to complete
signup to the Freebie Junkie FREE newsletter!";
$message = "Your e-mail was given from IP Address:".$ipi." for signup to the FreebieJunkie.com newsletter.".$message2;
$subject = "FreebieJunkie FREE Newsletter Signup";
$message3 = "Your E-mail Signup Request Has Been Sent To You At This Address:";
$message4 = "If you do not see the e-mail immediately,
please be patient as our busy server is processing other requests.";
}
else
{
$message2 = "We will read your e-mail and respond to you soon.";
$message3 = "We appreciate your comments.";
}
// feedback form, and you forgot to fill something in send form back
if (!isset($email) or !isset($message)) {
show_form();
}
else {
if (empty($email) or empty($message)) {
echo "
There is a Problem:
";
if (empty($email)) {
echo "I need your email address in order
to write back. Please fill it
in below. Thank you.";
}
if (empty($message)) {
echo "You did not write anything.
Please write something. Thank You.";
}
show_form($email,$message,$subject);
} // comments
else {
if (empty($subject)) { // comments
$subject="your email";
}
if (isset($fjemail)) {
$fmemail = "signup@freebiejunkie.com";
$sent = mail($fjemail,
$subject,$message,"From:$fmemail");
$email = $fjemail;
}
else {
$sent = mail("signup@freebiejunkie.com",
$subject,$message,"From:$email");
}
if ($sent) {
echo "Thank you!
";
echo "
$message3
";
echo "
$email
$message2
";
echo $message4;
}
else {
echo "There is a Problem:
The server was unable to send your mail.";
}
}
}
?>