Query String

From: Date: Mon, 21 Aug 2000 14:20:39 +0000
Subject: Query String
Groups: php.db 
Request: Send a blank email to php-db+get-2214@lists.php.net to get a copy of this message
My problem is to pass variable with quote and other symbols in a form. Examples: <php echo " .... <input type=hidden name=\"fname\" value=\"".$fname."\"> <input type=hidden name=\"lname\" value=\"".htmlentities($lname)."\"> .... </form>" if $fname is ' test" and lname is 'test" When php echoes I have <input type=hidden name="fname" value="'test""> <input type=hidden name="lname" value="'test&quote;"> The variable $fname will be 'test (without ") The variable $lname will be 'test (without ")

« previous php.db (#2214) next »