Hi,

Tuesday, September 3, 2002, 4:35:45 PM, you wrote:
>> Try this with single quotes:
>>
>>      <INPUT TYPE="HIDDEN" VALUE='Hello "world"' NAME="Message">

MT> Year, but then I couldn't use single-quotes in the text ;-) The problem is that
MT> the content of the field is inserted by the user, so I cannot say if he uses
MT> single- and/or double-quotes.


How about this then...
<?
$test = "Hello \"O'Brian\"";
?>
<INPUT TYPE="HIDDEN" VALUE="<?echo htmlentities($test)?>" NAME="Message">

No need to decode the returned value



-- 
regards,
Tom


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

Reply via email to