hello,
I don't know how for I got your problem but, If you trying to
print a string like this
eg : print "This is Tom's book";
In the above case you need not use a back slash to escape the single quote
coz' php accepts single quote's within a double quote.
Otherwise you can use stripslashes()
which works like this.
string stripslashes(string str);
Returns a string with backslashes stripped off. (\' becomes ' and so
on.) Double backslashes are made into a single backslash.
regards
- JFK
> >"Tom Ray" <[EMAIL PROTECTED]> wrote in message
> >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> >>I have a quick question that I haven't been able to find the answer to
> >>yet. I've made a couple of guest books via PHP but the biggest problem
> >>I'm having is if any one inputs a ' or " or anything like that, the
> >>output in the book shows the stupid \ for the escape. So the word
> >>"Tom's" looks like "Tom\'s" Is there anyway for me to handle those
> >>characters so the backslash doesn't appear in the output?
> >>
> >>Thanks,
> >>Tom
> >>
> >
> >
> >
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]