addslashes/stripslashes issue

From: Date: Wed, 25 May 2005 23:03:30 +0000
Subject: addslashes/stripslashes issue
Groups: php.general 
Request: Send a blank email to php-general+get-215863@lists.php.net to get a copy of this message
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

« previous php.general (#215863) next »