Form per la spedizione di e-mail da web. Include la possibiltà di avere informazioni sul mittente come ad esempio IP e sistema operativo.
<?
//Impostazioni
$owner_url = "www.yourname.co.uk"; // Your website address (no http://)
$site_name = "Your Site Name"; // The name of your site
$owner_email = "you@yourname.co.uk"; // Where results are sent
$email_subject = "Form Results"; // The subject of the results email
$success_title = "Successful Submission"; // Success page title
$success_msg = "Thank you for completing our form"; // Message printed
upon success
$receipt_subject = "Thank You!"; // Email receipt subject
$receipt_body = "Hi
Thank you for completing our form, we'll
get back to you as soon as we can"; // Receipt email body
$logging = "Y"; // "Y" Adds user details (ip, browser etc)
set to "N" if you wish to turn this off
// Stili
$bgcolor = "#ffffff"; // Page background colour
$font = "verdana"; // Font face
$title_main_colour = "#000000"; // Main Title Colour
$main_colour = "#000000"; // Hex value of font main color
$size = "2"; // Main font size
$title_error_colour = "#ff0000"; // Colour of error title
$error_colour = "#ff0000"; // Colour of error message
// controllo errori
$error_title = "Error!"; // Error page title
$error_msg = "You missed a required field (click 'back')"; // Error
message
// blocco spam
$spam_lock = "Y"; // Turn off at your own risk by changing to $spam_lock
= "";
// non modificare queste righe!!
if ($spam_lock) {
if (!$PHPSESSID) {
session_start();
}
else {
echo "<html>
<head>
<title></title>
</head>
<body bgcolor=$bgcolor>
<center><h2><font face=$font color=$title_main_colour>Error!</h2>
<font
face=$font size=$size color=$main_colour>To protect our network from
spam you are only allowed to submit this form once during a visit.<br>
Return to <a href=\"http://$owner_url\">$site_name</a></font>
</center>
</body>
</html>";
exit;
}
}
else {
}
?>