Documente Academic
Documente Profesional
Documente Cultură
php
# You can use this script to submit your forms or to receive orders by email.
$MailToAddress = "you@yoursite.com"; // your email address
$redirectURL = "http://www.web4future.com/thankyou.htm"; // the URL of the thank you page.
$MailSubject = "[Message from the contact form]"; // the subject of the email
# If you are asking for a name and an email address in your form, you can name the input fields "name" and "email".
# If you do this, the message will apear to come from that email address and you can simply click the reply button to
answer it.
# If you have a multiple selection box or multiple checkboxes, you MUST name the multiple list box or checkbox as
"name[]" instead of just "name"
# you must also add "multiple" at the end of the tag like this: <select name="myselectname[]" multiple>
# you have to do the same with checkboxes
/*****************************************************************
*****************************************************************/
# DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING
===================================================
$w4fver = "2.0.4";
$w4fx = strstr(file_get_contents('blockip.txt'),getenv('REMOTE_ADDR'));
}
}
} // end while
}//end if
else {
reset($_POST);
while(list($key, $val) = each($_POST)) {
$GLOBALS[$key] = $val;
if (is_array($val)) {
$w4fMessage .= "<b>$key:</b> ";
foreach ($val as $vala) {
$vala =stripslashes($vala);
$vala = htmlspecialchars($vala);
$w4fMessage .= "$vala, ";
}
$w4fMessage .= "<br>\n";
}
else {
$val = stripslashes($val);
if (($key == "Submit") || ($key == "submit")) { }
else {
}
}
} // end while
}//end else
$w4fMessage .= "<font size=3D1><br><br>\n Sender IP:
".getenv('REMOTE_ADDR')."</font></font></body></html>";
$w4f_what = array("/To:/i", "/Cc:/i", "/Bcc:/i","/Content-Type:/i","/\n/");
$name = preg_replace($w4f_what, "", $name);
$email = preg_replace($w4f_what, "", $email);
if (!$email) {$email = $MailToAddress;}
$mailHeader = "From: $name <$email>\r\n";
$mailHeader .= "Reply-To: $name <$email>\r\n";
$mailHeader .= "Message-ID: <". md5(rand()."".time()) ."@".
ereg_replace("www.","",$_SERVER["SERVER_NAME"]) .">\r\n";
$mailHeader .= "MIME-Version: 1.0\r\n";
boundary=\"----=_NextPart_000_000E_01C5256B.0AEFE730\"\r\n";