You can make modifications according to your actual situation, especially the database operation part.
============================================================
Using the components-free Daoxiang Laonong for multi-file upload
Please see:
http://bbs.blueidea.com/viewthread.php?tid=1249535
====================================================================
This example is a mixed submission of files and form items.
Simple explanation:
Although the focus is on the processing page, I feel it is necessary to introduce the project of the form.
This example is the upload of videos in the album.
The groupID is the ID of the major category passed by the hidden domain
The albumID is the ID of the subclass passed by the hidden domain
file1-->>file5 is a file
photoTitle1-->>photoTitle5 is the title of the picture
photoIntro1-->>photoIntro5 is an introduction to the video
photoWidth1-->>photoWidth5 is the width of the picture
photoHeight1-->>photoHeigth5 is the height of the picture
photoSize1-->>photoSize5 is the size of the picture.
Note: Because I do not have the habit of declaring variables, if you forcefully declare variables, you have to add them yourself.
===========================================================
Submit 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">
Upload instructions: Up to five files can be uploaded at the same time, including the title up to 30 words and the introduction is 200 words.
<table align="center" cellpadding="4" cellpacing="2">
<tr align="center" valign="middle">
<td align="left" bgcolor="#F4CECE" id="upid">File 1</td>
<td align="left" bgcolor="#F4CECE" id="upid"> <INPUT name="file1" type="file" size="20">
Width: <INPUT name="photoWidth1" type="text" id="photoWidth1" size="5" readonly="">
High: <INPUT name="photoHeight1" type="text" id="photoHeight1" size="5" readonly="">
Size: <INPUT name="fileSize1" type="text" id="fileSize1" size="5" readonly="">
</td>
</tr>
<tr align="center" valign="middle">
<td colspan="2" align="left" bgcolor="#FDF2F2" id="upid">
Title: <INPUT name="photoTitle1" type="text" id="photoTitle1" size="40">
<BR>
Introduction: <TEXTAREA name="photoIntro1" cols="60" rows="5" id="photoIntro1"></TEXTAREA>