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

This is a discussion on "I'm" Getting Truncated To: I - Why? within the PHP Language forums, part of the PHP Programming Forums category; I have a form where the user can enter text - I noticed that if I enter a sentence like: That ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-14-2003
Ralph Freshour
 
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...

Reply With Quote
  #2 (permalink)  
Old 10-14-2003
Geoff Berrow
 
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:

>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...


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/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:27 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0