Super Sonic
05-10-2004, 05:14 PM
Man, I'm going through heck right now. I have a total of 5 upload slots on a single form. I would like for each to upload a file and save that file into a particular user-specified directory.
I went here:
http://webdesign.about.com/library/weekly/aa030899.htm
But I soon found out that that was too broad and not descriptive enough for me to follow nor work into my preexisting script.
The script I'm making is for reviewing video games. The user selects what type of game it is(Example: Sonic, Mario) from a select list. Next the user enters the name of the game (text box). When I upload the image files (screenshots for the game being reviewed), I would like for them to go to $TYPE/$NAME (Example: Sonic/Sonic3) directory. That way all of the images will be sent to the same folder and be organized. BUT I have a total of five available slots for uploading images. Could you guys show me how to write a little script that accomplishes what I need. PLEASE, I'm begging of you.
I've started on this project not too long ago where a user can make a full professional review by just simply filling out a form. The CGI script then makes an .html file with the users input formatted in a perfect standard way. I have everything done ACCEPT for file uploads. PLEASE HELP!
I went here:
http://webdesign.about.com/library/weekly/aa030899.htm
But I soon found out that that was too broad and not descriptive enough for me to follow nor work into my preexisting script.
The script I'm making is for reviewing video games. The user selects what type of game it is(Example: Sonic, Mario) from a select list. Next the user enters the name of the game (text box). When I upload the image files (screenshots for the game being reviewed), I would like for them to go to $TYPE/$NAME (Example: Sonic/Sonic3) directory. That way all of the images will be sent to the same folder and be organized. BUT I have a total of five available slots for uploading images. Could you guys show me how to write a little script that accomplishes what I need. PLEASE, I'm begging of you.
I've started on this project not too long ago where a user can make a full professional review by just simply filling out a form. The CGI script then makes an .html file with the users input formatted in a perfect standard way. I have everything done ACCEPT for file uploads. PLEASE HELP!