If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > File Browse Dialog / File Selector ASP w/ VBSCript

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-22-09, 06:36
pow1983 pow1983 is offline
Registered User
 
Join Date: Jan 2009
Posts: 2
Question 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 06:41.
Reply With Quote
  #2 (permalink)  
Old 01-22-09, 07:26
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
I think you can do it this way:
Code:
<input type="file" name="some_file" />
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 01-22-09, 10:52
pow1983 pow1983 is offline
Registered User
 
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!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On