----- BEGIN CURRENT FORM -----
<?php
$adminaddress = "email@address.com";
$siteaddress ="http://www.website.com";
$sitename = "site name here";
//No need to change anything below ...
// Gets the date and time from your server
$date = date("m/d/Y H:i:s");
// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
// Gets the POST Headers - the Flash variables
$action = $HTTP_POST_VARS['action'] ;
$email = $HTTP_POST_VARS['email'] ;
$comments = $HTTP_POST_VARS['comments'] ;
//Process the form data!
// and send the information collected to email address
if ($action == "send") {
mail ("$adminaddress","Info Request",
"A visitor at $sitename has left the following information\n
Name: $name
Email: $email\n
The visitor commented:
------------------------------
$comments
Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress" ) ;
} //
?>
----- END FORM -----
PHP Strip Tags URL: