Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2009
    Posts
    2

    Question Unanswered: File Browse Dialog / File Selector ASP w/ VBSCript

    Hi There,

    New to ASP & VBScript.

    I have a simple form which is validated and emailed to some address.
    What I want to do is allow a user to select a file from their PC and the location of that file to be placed into a text box so that I can then attach it to the Email that is sent.

    I can attach a file no problem by using a manual address but I'd prefer the user to select the file location.

    Looking on the web there doesnt appear to be a simple way in VBScript to display a file browse window.

    Does anyone know how to do this?
    Id prefer to avoid using JavaScript as I want to keep it to one language.

    Many Thanks

    Rich.
    Last edited by pow1983; 01-22-09 at 07:41.

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    I think you can do it this way:
    Code:
    <input type="file" name="some_file" />
    George
    Home | Blog

  3. #3
    Join Date
    Jan 2009
    Posts
    2

    Thumbs up

    Quote Originally Posted by georgev
    I think you can do it this way:
    Code:
    <input type="file" name="some_file" />
    Thanks very much!!
    Didnt expect it to be available in HTML.
    No wonder my searches were returning blanks.

    Cheers!

Posting Permissions

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