Re: addslashes/stripslashes issue
| From: | John Nichel | Date: | Fri, 27 May 2005 16:44:17 +0000 |
| Subject: | Re: addslashes/stripslashes issue | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215880@lists.php.net to get a copy of this message | ||
JM wrote:
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?http://us4.php.net/htmlentities -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com