Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2002
    Location
    Alabama
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    input type="file" question

    I am trying to get a file name and path from the user. I am using input type="file" and it works fine except I really need to initialize the file name and path and have the browse window start there with the file name I have put in. I tried using the VALUE="path\name" but it isn't working. I am doing something wrong or is this not possible?

    Thanks

    <input TYPE="FILE" NAME="txtFileName" VALUE="S:\dir1\dir2\filename.txt" ALLOW="text/*">

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Probably something like


    document.location=document.formname.txtFileName.value

    Not too sure

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts


  •  

    Posting Permissions

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