Re: Quotes """ in form textarea fields

From: Date: Fri, 08 Oct 2004 21:44:49 +0000
Subject: Re: Quotes """ in form textarea fields
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-199027@lists.php.net to get a copy of this message
Andrew Kreps wrote:
I'd like to add that you can also use the following syntax for textarea fields: <input type="textarea"><?= $_POST['hidden'] ?></textarea> which may also get you past the quoting problem.
You mean you can use: <textarea name="hidden"><?=htmlentities($_POST['hidden'])?></textarea> unless you prefer depreciated code and cross site scripting vulnerabilities... http://www.w3.org/TR/html4/interact/forms.html#input-control-types http://www.w3.org/TR/html4/interact/forms.html#h-17.4 -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#199027) next »