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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ralph Freshour

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

    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

    #2
    Re: "I'm&qu ot; Getting Truncated To: I - Why?

    I noticed that Message-ID: <ri1novs2fsefas snrij3qcgflhegi q80pv@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/

    Comment

    Working...