Re: Textarea, File Upload field setting values
| From: | Bill Lovett | Date: | Sun, 05 Jan 2003 00:21:52 +0000 |
| Subject: | Re: Textarea, File Upload field setting values | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24559@lists.php.net to get a copy of this message | ||
For the textarea, print the value between the tags-- there is no value
attribute:
<textarea><?= $txtDescription ?></textarea>
You cannot do this with file inputs.
-bill
Rajesh Fowkar wrote:
Hi, I can write a code like : <input type="text" name="txtfield1" value="<? $txtfield1 ?>"> Thus I can set the value of $txtfield1 and it is reflected in the above textbox. How can such thing be done with TextArea and File upload ? <input maxLength="128" name="Imagefile" type="file" value="<? echo $Imagefile ?>"> <textarea name="txtDescription" rows=25 cols=80 maxlength="1000" value="<? $txtDescription ?>"></textarea> The above stuff is not working. Is it possible to accomplish the above stuff ? I need this since I am calling the same form on submit for validation and hence will need the values of the above also to remain intact in case of error in any other fields. Thanks in advance. Peace -- Rajesh * rajesh-shriram@gmx.net * http://www.symonds.net/~rajesh/ Powered By : Debian GNU/Linux 3.0 (Woody) - [Kernel 2.4.18(ext3),Mutt 1.5.1i] It's not the valleys in life I dread so much as the dips. -- Garfield