Jason Wong wrote:

>Well your problem is not caused by the rawurlencode, rawurldecode. It's 
>probably because you have magic_quotes_gpc set to on. 
>
>Try this:
>
>For your URL: rawurlencode(stripslashes($subject)), and same for $message.
>
>For your textarea: htmlspecialchars($subject), & $message.
>
>If you're putting $subject & $message into a DB you would probably want to do 
>the reverse of htmlspecialchars() before inserting them into the DB.
>

Mr. Wong is wright :-) The only problem is that you should 
rawurlencode(stripslashes($subject)) in the header and 
htmlspecialchars(stripslashes($subject)) in the textarea for the 
expected results.

Bogdan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to