aeroswat Posted July 7, 2010 Share Posted July 7, 2010 I am having a problem with mail() and stripslashes() I am trying to email the $message and this is what $message contains stripslashes($studentName); $studentName = Johnny O\'neal If I mail it without stripslashes It displays: Johnny O\'neal if I mail it with stripslashes it displays the same thing... Link to comment https://forums.phpfreaks.com/topic/207059-stripslashes-not-working/ Share on other sites More sharing options...
kenrbnsn Posted July 7, 2010 Share Posted July 7, 2010 We need to see more of your code. Ken Link to comment https://forums.phpfreaks.com/topic/207059-stripslashes-not-working/#findComment-1082715 Share on other sites More sharing options...
marcus Posted July 7, 2010 Share Posted July 7, 2010 Is it possible there are more slashes. If name is "Johnny O\\\'neal" and you use stripslashes once you will get "Johnny O\'neal" If you use stripslashes twice, you will get "Johnny O'neal" Link to comment https://forums.phpfreaks.com/topic/207059-stripslashes-not-working/#findComment-1082723 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.