I am writing a forum script and whenever I pass text that contains quotes or backslashes from script to script all of the quotes etc are preceded by backslashes. The more I pass the text arround the more the backslashes accumulate! Is there a decode function or something that I could process the text with to stop this?
Cheers
Steve!
Hi Stephen,
Look for addslashes() and stripslashes() both string functions.
http://www.php.net/manual/en/ref.strings.php
greetings
Cheers! I had comletely forgotten about stripslashes(). :=)
Yeah! I am just passing text between three forms, One is for creating a message the next displays the newly created message for verfication and the third is used if the author wishes to edit the message, so it's not too bad.
Cheers!!!
Just remember, everytime you attempt to pass this string with the quotes in it to another form, you will have to call stripslashes() again . . . and again . . . and again.