In order to build the class homepage, I bought a space and supported the SA FileUp component.
After a day of preparation, I finally got a general idea. The following is my example. I hope it will help you.
You can make modifications based on your actual situation, especially the database operations section.
========================================================== ====
Upload multiple files using components of Daoxiang's old Farmer
See:
/Bbs/newsdetail. asp? Id = 1249535 & posts = current
========================================================== ============
This example is a hybrid submission of file and form items.
Simple description:
Although the focus is on the processing page, I think it is necessary to introduce the form project.
This example uploads images from an album.
The groupID is the ID that hides the class passed by the domain.
The albumID indicates the ID of the sub-class passed by the hidden domain.
File1 --> file5 is a file
PhotoTitle1 --> photoTitle5 is the title of an image.
PhotoIntro1 --> photoIntro5 is an overview of the image.
PhotoWidth1 --> photoWidth5 is the width of the image.
PhotoHeight1 --> photoHeigth5 is the height of an image.
PhotoSize1 --> photoSize5 is the image size.
Note: Because I do not have the habit of declaring variables, if you force declaring variables, you have to add them on your own.
========================================================== ===
Submission page: the main code is as follows:
<Form name = "fileForm" method = "post" action = "photo_savephoto.asp" enctype = "multipart/form-data" onSubmit = "return checkForm ();">
<INPUT name = "groupID" type = "hidden" id = "groupID"
Value = "<% = groupID %>" size = "10">
<INPUT name = "albumID" type = "hidden" id = "albumID"
Value = "<% = albumID %>" size = "10">
& Nbsp; Upload description: you can upload up to five files at the same time, with a title of up to 30 words and a brief introduction of 200 words.
<Table width = "96%" align = "center" cellpadding = "4" cellspacing = "2">
<Tr align = "center" valign = "middle">
<Td align = "left" bgcolor = "# F4CECE" id = "upid"> File 1 </td>
<Td height = "29" align = "left" bgcolor = "# F4CECE" id = "upid">
<INPUT name = "file1" type = "file" class = "myInput" size = "20">
Width: <INPUT name = "photoWidth1" type = "text" class = "input-disabled" id = "photoWidth1" size = "5" readonly = "">
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.