addslashes/stripslashes issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
Ok here is what I need help with:

$var = "i like fi'sh";

I'm able to addslashes(gather the data from a form), submit into the
database, stripslashes(retrieve it).

My problem is when I display it in a input type=text form the single
quote is causing a truncation.

<input type="text" value="{$var}">  
will display as: 
i like fi   
in the text form...

Any help?

-- 
John

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux