Results 1 to 1 of 1

Thread: pre-insert data into input type=file

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2004
    Location
    Earth 4 now.
    Posts
    27

    pre-insert data into input type=file

    When updating some information, I want to show the old data(from the database) in the input type=file and make it possible for the user to change it than save it (database). I can do all that except the part of putting the old data(from the database) into the input type=file.

    I want to put an initial file name, into an input type=file.

    I'm using this as a substitute..

    <TR><TD>Extra Document: <%=rsAccount("ExtraDocument")%></TD></TR><TR><TD><INPUT TYPE=FILE NAME=extradocument SIZE=43 ></TD></TR>

    (show the initial filename before the input type=file, so the user can copy it.)

    This would be the solution if it worked (But it doesn't seem to work with this type):

    <TR><TD>Extra Document: </TD></TR><TR><TD><INPUT TYPE=FILE NAME=extradocument value=<%=rsAccount("ExtraDocument")%> SIZE=43 ></TD></TR>

    "INPUT TYPE=FILE -> Creates a file select control. User agents may use the value of the value attribute as the initial file name."

    Also, I'm using Internet Explorer.

    Is there an other way I can use?
    Last edited by ShotokanTuning; Jul 16th, 2004 at 02:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width