graham23s Posted August 7, 2007 Share Posted August 7, 2007 Hi Guys, when i type a form and sent it in php text like: The site hasn't gets displayed as: The site hasn\'t i know this does line breaks $message = nl2br($_POST['message']); but is it add or stripslashes for my problem above? thanks guys Graham Link to comment https://forums.phpfreaks.com/topic/63761-slashes-in-messages/ Share on other sites More sharing options...
Hybride Posted August 7, 2007 Share Posted August 7, 2007 Stripslashes. Where you have the form variable, make it $message = stripslashes($message); and that should help. Link to comment https://forums.phpfreaks.com/topic/63761-slashes-in-messages/#findComment-317791 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.