[PHP-DB] Textarea, File Upload field setting values

2003-01-04 Thread Rajesh Fowkar
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 *  [EMAIL PROTECTED]  *  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

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




Re: [PHP-DB] Textarea, File Upload field setting values

2003-01-04 Thread Bill Lovett
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 *  [EMAIL PROTECTED]  *  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





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