Error!
caution : please type your name in form
Back to form
'); }; if (empty($HTTP_POST_VARS['email_msg'])){ die('
Error!
caution : please type your email
Back to form
'); }; if (empty($HTTP_POST_VARS['msg_body'])){ die('
Error!
caution : please type your text
Back to form
'); }; $name_msg = htmlspecialchars($HTTP_POST_VARS['name_msg']); $name_msg = str_replace("&","&",$name_msg); $name_msg = str_replace("ی","ي",$name_msg); $msg_body = htmlspecialchars($HTTP_POST_VARS['msg_body']); $msg_body = str_replace("&","&",$msg_body); $msg_body = str_replace("ی","ي",$msg_body); $msg_body = nl2br($msg_body); if (!empty($HTTP_POST_VARS['url_msg'])) { $url_msg = str_replace('http://','',$_POST['url_msg']); $name_msg = "
".$name_msg."
"; } if(!strpos($_POST['email_msg'],"@")) { print('
Error!
caution : type your Emali
Back to form
'); die('
example : info@phpfreecode.Com
'); }; $from = htmlspecialchars($HTTP_POST_VARS['email_msg']); $body = '
Send comment
=> new comment <=
Name & Web address
'.$name_msg.'
Comment
'.$msg_body.'
'; if(!mail($admin_email,'New Contact us',$body,"From: <$from>\n"."MIME-Version: 1.0\n"."Content-type: text/html")) { print('
The Mail Could not be send!
server is busy .please try later
return to form
'); }else { print('
Thank You!
Your comment has been sent successfully
Thanks for your comment
return to comment
|
powered by phpfreecode.com
'); } } else { ?>
Type new comment
Accept comment
.
Add whatever here
your name
*:
website name
:
your email
*:
your request*:
C
opyright © 2008 by
PHPFreeCode.com
- All Rights Reserved
PHP Free Code