Connecting Tech Pros Worldwide Forums | Help | Site Map

"I'm" Getting Truncated To: I - Why?

Ralph Freshour
Guest
 
Posts: n/a
#1: Jul 17 '05
I have a form where the user can enter text - I noticed that if I
enter a sentence like:

That is what I'm thinking

that when I save that string into a php global session variable, when
I use that same variable in the next form the string is:

That is what I

The ' is being truncated - does anyone know what might be causing
this?

I've checked the var and nothing else is touching it between forms...

Thanks...


Geoff Berrow
Guest
 
Posts: n/a
#2: Jul 17 '05

re: "I'm" Getting Truncated To: I - Why?


I noticed that Message-ID: <ri1novs2fsefassnrij3qcgflhegiq80pv@4ax.com>
from Ralph Freshour contained the following:
[color=blue]
>The ' is being truncated - does anyone know what might be causing
>this?
>
>I've checked the var and nothing else is touching it between forms...[/color]

Use addslashes()

--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Closed Thread