kev wood Posted July 24, 2008 Share Posted July 24, 2008 i need to get rid of the backslashes caused by php escaping magic quotes. i am using a text area to store some text which is called $message_body1 which is echoed out on different pages. i tried to use this but it did not like the code i had used. $message_body1=stripslashes ( echo ($message_body1) the error i got was Parse error: parse error, unexpected T_ECHO, expecting ')' how should this code be lais out to give it the intended result. Link to comment https://forums.phpfreaks.com/topic/116371-solved-stripslashes/ Share on other sites More sharing options...
samshel Posted July 24, 2008 Share Posted July 24, 2008 $message_body1= stripslashes ($message_body1); echo $message_body1; Link to comment https://forums.phpfreaks.com/topic/116371-solved-stripslashes/#findComment-598375 Share on other sites More sharing options...
kev wood Posted July 24, 2008 Author Share Posted July 24, 2008 thanks for the reply. i workd it out as you sent the code through i ended up using this which has the same effect. <?php print stripslashes( ($corp_messagebody1)); ?> Link to comment https://forums.phpfreaks.com/topic/116371-solved-stripslashes/#findComment-598378 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.