Note that there are some explanatory texts on larger screens.

plurals
  1. POSend email php with Arabic support
    text
    copied!<p>I have feedback form. I want to send the content in HTML mail. When user enter Arabic character it don't show right. something like تجربة </p> <p>PHP code: </p> <pre><code>function send_email($fromPerson, $fromEmail, $to, $subject, $message) { $headers = "From: $fromPerson&lt;$fromEmail&gt; \n"; $headers .= "Reply-To: $eMail \r\n"; $headers .= "X-Mailer: PHP/". phpversion(); $headers .= "X-Priority: 3 \n"; $headers .= "MIME-version: 1.0\n"; $headers .= "Content-Type: text/html; charset=UTF-8\n"; $headers .= "Bcc:log@tazbeta.com\n"; $msg=$message; @mail($to, $subject, $msg, $headers); </code></pre> <p>I tried to send Arabic directly from the php code and it arrived correctly, some thing like <code>$msg = "مثال";</code> </p> <p>The problem is when I submit the content from the feedback code. </p> <pre><code>&lt;form name="feedb" method="post" action="subscribe.php" onsubmit="return validate_forms();"&gt; &lt;input type="hidden" name="feedback_action" value="feed" /&gt; &lt;div class="fr" style="width:378px;"&gt; &lt;p class="white fs24 mb4"&gt;Give Us Your Valuable Feedback&lt;/p&gt; &lt;input name="firstName" id="firstName" type="text" style=" background:#fff; padding:5px; border:none; width:174px; color:#000; font-size:13px;" value="Full Name" onfocus="if(this.value=='Full Name')this.value=''" onblur="if(this.value=='')this.value='Full Name'" /&gt; &lt;input name="email" id="email" type="text" style=" background:#fff; padding:5px; border:none; width:174px; color:#000; font-size:13px; margin-left:5px;" value="Email ID" onfocus="if(this.value=='Email ID')this.value=''" onblur="if(this.value=='')this.value='Email ID'" /&gt; &lt;div class="cb pb8"&gt;&lt;/div&gt; &lt;textarea name="comments" id="comments" rows="3" cols="50" style=" background:#fff; padding:5px; border:none; width:366px; color:#000; font-size:13px;" onfocus="if(this.value=='Feedback')this.value=''" onblur="if(this.value=='')this.value='Feedback'"&gt;Feedback&lt;/textarea&gt; &lt;div class="ar mt6"&gt; &lt;input type="hidden" name="source" value="feedback" /&gt; &lt;input name="submit" type="image" src="images/sbmt.gif" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p>Please, any ideas ?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload