Help - Search - Members - Calendar
Full Version: Forms, Uploading, and .ASP, Oh my!
HTMLHelp Forums > Programming > Server-side Scripting
BrocknessMonsta
I'm a senior class delegate for my high school, and my job for next year is to create our senior banquet slideshow and video.
I've created a website where students can upload photos to be put into our slideshow. The following is the code that I used to create the upload form.

<html>
<body>

<form action="2010Photos.asp" method="get">

<input type="hidden" name="MAX_FILE_SIZE" value="10000" />

<input type="file" /><br/><br/>
Your name: <input type="text" name="NAME" /><br />
In this photo: <input type="text" name="TAGS" /><br />
Description: <input type="text" name="SCRIP" maxlength="1000" /><br /><br/>
<input type="submit" value="Upload" />
</form>

</body>
</html>


My issue now is the 2010Photos.asp file. From what I understand, this is where the stuff people upload goes to. What I don't understand is what exactly is the .asp file, what does it do, how do I create one, and how do I get the uploads off of the file on to my computer? I created the code and attempted to upload a photo to see if some magic would happen and it would upload, but it says there is a 404 error and the file 2010Photos.asp can not be found.

Any help in getting me to understand this magic .asp thing would be highly appreciated. My goal is to have this site up by June 10 so that it will be accessible before school is out for the summer.
Thank you.
pandy
You probably need to configure the script. Didn't it come with some instructions? Where did you get it?

The file is a script, or a program if you will. It contains code, instructions, for how the form should be handled and and what should be done with the uploads. You can open it and read it in a text editor. It's just plain text. Just keep a backup in case you make changes.

A little general information about using forms here.
http://htmlhelp.com/faq/html/#formstoc

I move this to the serverside scripting forum. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.