Keith Greene wrote:
>> Here is what I tried:
>>
>> <textarea name="zoutput" rows="20" cols="70" wrap value="<? echo
>> $test; ?>" /> </textarea>
>
textareas do not use the value attribute. instead, the value is placed between the <textarea></textarea> tags:

<textarea name="zoutput" rows="20" cols="70" wrap /><? echo $test; ?></textarea>

Ensure you run $test through htmlentities() or htmlspecialchars() before placing it in your <textarea> like this to prevent code injection.


--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

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



Reply via email to