Thank you very much
i used FCKeditor and was able to create a rich text box for my forms.
I use it in "send Email " form in my web site. (used for the email body area)But when i send emails through that form, the receiver gets a email including codings of the email.
Example - If i email - "How Are U", The receiver will get the email as a HTML code " [COLOR=" Red"] "How Are U"[/COLOR][ /B]"
This is my page coding
<html>
<head><?php
include_once("../fckeditor/fckeditor.php") ;
?>
<title>email</title>
</head>
<body>
<form name="email" method="post">
<table align="center">
<tr>
<td>from</td>
<td align="right"><input type="text" size="60" name="from" /></td>
</tr>
<tr>
<td>to</td>
<td align="right"><input type="text" size="60" name="to" /></td>
</tr>
<tr>
<td>cc</td>
<td align="right"><input type="text" size="60" name="cc" /></td>
</tr>
<tr>
<td>bcc</td>
<td align="right"><input type="text" size="60" name="bcc" /></td>
</tr>
<tr>
<td>subject</td>
<td align="right"><input type="text" size="60" name="subject" /></td>
</tr>
<tr>
<td colspan="2">
<?php
$oFCKeditor = new FCKeditor('body') ;
$oFCKeditor->BasePath = '/fckeditor/' ;
$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
$oFCKeditor->Create() ;
$sValue = stripslashes( $_POST['FCKeditor1'] ) ;
?>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="submit" value="send" />
</td>
</tr>
</table>
</form>
<?
function param($Name)
{
global $HTTP_POST_VARS;
if(isset($HTTP_POST_VARS[$Name]))
return($HTTP_POST_VARS[$Name]);
return("");
}
$from = param("from");
$to = param("to");
$cc = param("cc");
$bcc = param("bcc");
$subject = param("subject");
$body = param("body");
if($from != "" && $to != "" && $subject != "")
{
$headers = "From: " . $from . "\n" .
"To: " . $to . "\n" .
"CC: " . $cc . "\n" .
"BCC: " . $bcc;
mail("", $subject, $body, $headers);
}
?>
</body>
</html>
Why is this . And What Can i do about this
thanks sisira