php - unable to receive form info -


i creating email form using dreamweaver , wrote codes in php gather form info , send email. works fine have big problem. in fact want user right-to-left language persian or arabic form. when fill in form english words, in email receive stuff when type in if arabic, receive نام خانوادگی in email: here comes php code:

<?php  $_post['emailaddress'] = "info@behzadmoradi.com"; $to = "info@behzadmoradi.com"; $subject = "نظر در مورد سکان آکادمی"; $message .= "نام ".$_post['name'] . "\n"; $message .= "نام خانوادگی ".$_post['lastname'] . "\n"; $message .= "آدرس ایمیل ".$_post['email']  ."\n"; $message .= "نوع درخواست ".$_post['request'] . "\n"; $message .= "متن درخواست ".$_post['requesttext'] . "\n";  mail($to, $subject, $body, $message);  header ( "location: commentthankyoupage.php ");  ?> 

try this,

$headers = 'content-type: text/html; charset=utf-8' . "\r\n"; mail($to, $subject, $message,$headers);// 3rd param message or body check param 

read http://php.net/manual/en/function.mail.php

also can use phpmailer library


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -