Jump to content


Photo

Initial value of file form field


  • Please log in to reply
2 replies to this topic

#1 herando

herando
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 15 June 2006 - 08:21 AM

How to set initial value of file form field. If I set <input type="file" name="file" value="something" /> , the value doesn't appear on screen.

#2 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 15 June 2006 - 05:01 PM

You cannot set the value of the file input field, security risk. If possible, spammers will be able to steel your files just by visiting the site.

NoGray.com


#3 bobleny

bobleny
  • Members
  • PipPipPip
  • Advanced Member
  • 429 posts

Posted 15 June 2006 - 09:35 PM

Yeah, there is no field type of “file” that I know of. Umm, what exactly are you trying to do? Maybe there’s and alternative...
-- www.firemelt.net --
First do me a favor and read this: JavaScript is NOT Java - Then read this: www.php.net - When your done with that, read this Topic
After that, floors open. I and anyone else will be MORE than happy to answer YOUR query! [Topic Solved]
Cheer up, the worst has yet to come...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users