use javascript.  forms have an onsubmit() method which, if it returns false,
will prevent submission of the form.  

--Monte Glenn Gardner


On Tue, 23 Jul 2002, [iso-8859-9] Serdar BOZDA� wrote:

> hi,
> i have an html page which has a form. in this form there is an input whose type is 
>file
> so users press BROWSE button and choose a file then press upload button to upload 
>the file. but I want to filter the file choose. (Users can only select txt files for 
>instance)
> can i do this?
> thanks a lot,
> serdar
> 
> 

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to