#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    2
    Rep Power
    0
    I am having problems with the
    <input type=file name=to_upload>
    Tag.

    I noticed that you can't specify the
    value attribute throught several submissions. What I have is an employee database and a form to enter new employees and upload a picture of them.

    I have the script checking if there is a value for first and last name etc.. If they don't enter the required fields the form wont let them submit the information instead it tells them to complete the empty fields on the form. The field that they have already filled in retain there value through multiple submissions. The problem I am having is that the <input type=file name=file *****value=$foo*****> Doesn't work as it does with the text input types. I was wondering how I would get the file field to retain its value through multiple submissions.


  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    You don't. That's one thing you can't do with form file types. I would verify everything, THEN go to another form to upload the pic.

Similar Threads

  1. how to upload text file into blob field
    By misoz in forum MySQL Help
    Replies: 8
    Last Post: February 5th, 2004, 02:48 AM
  2. Uploading multiple images using paths all in same .txt file?
    By MarlboroMan in forum Perl Programming
    Replies: 3
    Last Post: February 3rd, 2004, 05:34 PM
  3. How to read multiple line text file into a variable
    By gatewaycityca in forum Visual Basic Programming
    Replies: 4
    Last Post: January 29th, 2004, 12:26 PM
  4. Active perl multiple search when file is open
    By melinda in forum Perl Programming
    Replies: 3
    Last Post: January 28th, 2004, 04:29 AM
  5. Inserting from form to multiple tables
    By barth in forum MySQL Help
    Replies: 0
    Last Post: January 25th, 2004, 09:27 AM

IMN logo majestic logo threadwatch logo seochat tools logo