Connecting Tech Pros Worldwide Help | Site Map

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

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 12:31 AM
Ralph Freshour
Guest
 
Posts: n/a
Default "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...


  #2  
Old July 17th, 2005, 12:31 AM
Geoff Berrow
Guest
 
Posts: n/a
Default 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/
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.