Page 1 of 1

Default Values

Posted: Wed Oct 02, 2002 2:20 pm
by xLechugasx
Hi to all!
I have different objects in my page, such as text boxes, check boxes, file input and text areas.
I know that to enter a default value in the text box I use the value property. But, which is the name of the property to set the default value in the textarea and in the file input?
Thanks,
Nicolas

Posted: Wed Oct 02, 2002 2:31 pm
by Takuma
Use "value" for file as well and use this format for the default value of textarea

Code: Select all

<TEXTAREA>
Default value
</TEXTAREA>

Posted: Wed Oct 02, 2002 3:43 pm
by xLechugasx
Thanks a lot!
Does anybody know how to do it with the file input?

Posted: Wed Oct 02, 2002 4:46 pm
by volka
the value-property (value="predefined.file") was interpreted [long,long time ago ;) ], but not any longer - security issues.

Posted: Thu Oct 03, 2002 12:24 pm
by xLechugasx
Where are you talking about volka?
Shouldn't I use it in the text field, the value property, or are you talking about in the file input?

Posted: Fri Oct 04, 2002 8:37 am
by volka
I meant <input type="file" name="xyz" value="input.txt" />
But as mentioned: this isn't anymore (I know what files I would set as default-values - of course only if I would be evil-volka ;) )