Your Name
Your EMail Address
Your comment
'; if($contactform.phpseen!="y") { print "$contactform.phpform"; } else { $errstr=""; if (strlen($contactform.phpvar3)<1) { $errstr.="Your Name value must be at least 1 character.
"; } if (strlen($contactform.phpvar3)>50) { $errstr.="Your Name value must not exceed 50 characters.
"; } if (strlen($contactform.phpvar4)>128) { $errstr.="Your EMail Address value must not exceed 128 characters.
"; } if (!valid_email($contactform.phpvar4)) { $errstr.="You entered an invalid Your EMail Address value.
"; } if (strlen($contactform.phpvar5)>2000) { $errstr.="Your comment value must not exceed 2000 characters.
"; } if ($errstr!='') { print '
'; print $errstr; print '
'; print $contactform.phpform; } else { if (isSet($_SERVER)) { if (isSet($_SERVER['HTTP_X_FORWARDED_FOR'])) { $realip = $_SERVER['HTTP_X_FORWARDED_FOR']; } elseif (isSet($_SERVER['HTTP_CLIENT_IP'])) { $realip = $_SERVER['HTTP_CLIENT_IP']; } else { $realip = $_SERVER['REMOTE_ADDR']; } } else { if ( getenv( 'HTTP_X_FORWARDED_FOR' ) ) { $realip = getenv( 'HTTP_X_FORWARDED_FOR' ); } elseif ( getenv( 'HTTP_CLIENT_IP' ) ) { $realip = getenv( 'HTTP_CLIENT_IP' ); } else { $realip = getenv( 'REMOTE_ADDR' ); } } $host = @gethostbyaddr($realip); $today = date("F j, Y, g:i a"); $sendmessage = "--------------------\n"; $sendmessage.= " - Your Name: $contactform.phpvar3\n"; $sendmessage.= " - Your EMail Address: $contactform.phpvar4\n"; $sendmessage.= " - Your comment:\n$contactform.phpvar5\n"; $sendmessage.= "--------------------\n"; $sendmessage.= "\n\nIP: $realip\n"; $sendmessage.= "HOST: $host\n\n"; $sendmessage.= "Date and time sent: $today"; @mail("[email protected]", "Khmerboy.biz", $sendmessage, "From: $contactform.phpvar3 <$contactform.phpvar4>\r\nReply-To: $contactform.phpvar4\r\nX-Sender: Strong CONTACT (http://www.stronghtml.com)\r\nReturn-Path: <$contactform.phpvar4>"); print '
Thanks for your message! I\'ll get back to you soon!
'; } } ?>