Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Common dialogue box...?

Status
Not open for further replies.

adamsoderqvist

Programmer
Sep 8, 2001
136
SE
I have a cmd box where the suer can choose a path, it looks something like:

<input type=file name=file>

now, let´s say I want the user to be able to pick only files of a certain type, pictures for example. what should the syntax be?

/thanx
 
the actual input will not validate the apth for you, you would have to use client side script like javscript to check the path and make sure the extension is valid
 
Ok, but I mean more like when the user opens the dialogue box, the different file types that are elible to select will show up (and not if the file exists or not - thats a problem for the user to deal with...)

example:

Files of type: Word documents *.doc
Text files *.txt
All *.*
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top