Skip to navigation
Real World Computing

List to starboard

Posted on 22 Sep 2005 at 12:28

Mark Newton blows the dust off his list server and gets into a GoogleFight

Let's take a look at some sample code. First, you need an HTML form with an input box of type 'file', something like:

Browse to Your Results File To Upload :

By using this type of input box on a form, the user is presented with a Browse button, which lets them point to a file in their local file system, or type the path and filename into the textbox. Once the file is selected, you'll need a Submit button to send the form information to the server:

It's also a good idea to define an area to display the results of the upload:

File Name:

File Content:

File Size: bytes

The eagle-eyed among you will have spotted that the Submit button doesn't in fact submit the form in the traditional sense, but instead calls a subroutine called SendFile_Click, and it's this routine that calls the server-side file upload component. This code is normally inserted between the and the tags.

Be the first to comment this article

You need to Login or Register to comment.

(optional)

advertisement

Latest Real World Computing
Latest Blog Posts Subscribe to our RSS Feeds
Latest News Stories Subscribe to our RSS Feeds
Latest ReviewsSubscribe to our RSS Feeds

advertisement

Sponsored Links
 
SEARCH
SIGN UP

Your email:

Your password:

remember me

advertisement


Hitwise Top 10 Website 2010
 
 

PCPro-Computing in the Real World Printed from www.pcpro.co.uk

Register to receive our regular email newsletter at http://www.pcpro.co.uk/registration.

The newsletter contains links to our latest PC news, product reviews, features and how-to guides, plus special offers and competitions.