Hello,
This is rather embarassing given my 4 years of php coding experience but I've noticed when I'm pulling quoted text from a database into a input text field, the entire text w/in the quotes, and the quotes themselves disappears.
For instance, if I try to echo this string: this is "text", only the string: this is will show up in the text input box.
I know there has to something stupid I'm missing
Thanks,
Clem C
Quoted text disapearing in text input boxes
Moderator: General Moderators
-
clem_c_rock
- Forum Commoner
- Posts: 46
- Joined: Mon Jun 07, 2004 9:18 am
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Quoted text disapearing in text input boxes
So, only when you pull text from a database? or when you also echo quoted text?clem_c_rock wrote:Hello,
This is rather embarassing given my 4 years of php coding experience but I've noticed when I'm pulling quoted text from a database into a input text field, the entire text w/in the quotes, and the quotes themselves disappears.
For instance, if I try to echo this string: this is "text", only the string: this is will show up in the text input box.
I know there has to something stupid I'm missing
Thanks,
Clem C
Code: Select all
echo 'This is some "quoted text"';You should provide more details...might be something your doing with addslashes() or failing to do...who knows...
p.s-Why is any question embarrising?
Thats the beauty of computers and programming ...the more you know...the more you realize the less you know...
Sorry I couldn't be of more help, but i've never experienced a problem like this...
Cheers
-
clem_c_rock
- Forum Commoner
- Posts: 46
- Joined: Mon Jun 07, 2004 9:18 am