Open Source Development Tutorials | Newsletter Signup | About Us
Search  

Go Back   Open Source Tutorials Forum > Web Development > HTML, JavaScript & CSS
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-27-2007, 07:55 PM
hannah hannah is offline
Junior Member
 
Join Date: Sep 2007
Posts: 1 hannah is on a distinguished road
Default Html And Jsp Help

Hi friends, For my semester project, I'm creating a form using jsp and html. I want to keep a browse button in the form which will enable the users to select a picture from their respective PC and upload it to the database. How to bring in that browse dialog box which enables the users to browse for their pictures? What parameters do i need to insert there?
__________________
free laptop offer
Reply With Quote
  #2  
Old 09-28-2007, 06:06 AM
md_doc md_doc is offline
ubergeek
 
Join Date: Oct 2003
Posts: 204 md_doc has disabled reputation
Default Two key parts

There are two key parts to what you are trying to do here.

The first step is you need to include METHOD=POST ENCTYPE="multipart/form-data" so that your form will look like

Code:
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="my_page.jsp">


The next step is to put the actual upload file input

Code:
<INPUT TYPE="FILE" NAME="upfile">


I hope this has helped!
__________________
md
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT -5. The time now is 07:04 AM.


Powered by: vBulletin Version 3.0.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright 2004 - 2006 GrindingGears.com. All Rights Reserved.