Connecting Tech Pros Worldwide Help | Site Map

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

  #1  
Old July 17th, 2005, 01:31 AM
Ralph Freshour
Guest
 
Posts: n/a
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...

  #2  
Old July 17th, 2005, 01:31 AM
Geoff Berrow
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling an empty binary file from a "full" one Michel Rouzic answers 26 November 15th, 2005 03:32 AM
c equivilant to "copy" Shagy answers 27 November 14th, 2005 05:56 PM
Too few parameters expected 2 error occurs after migrating "MS Access 2000" to "MS SQL Server" bonnie.tangyn@gmail.com answers 1 November 13th, 2005 04:07 PM
help me with " sign in display of data in asp form cooldv answers 9 July 19th, 2005 11:14 AM