I've got 20 documents with over 114 concurrent questions about 36 each. So I've put them in a table in my database and I've made ajax drag and drop interface so document management is easy.
The input part is ready but now I have to complete the part that saves all fields into the database.
I've got a excellent working script called "FreeASPUpload
" that stores my files but now I'd like to store all my other on file input fields into my database.
Could I, like the script does in loop from line 18 to 25, save all other input to my database?
The value names from the <input fields correspond with the database fieldnames!
Line 29 to 32 show the working syntax for non file fields
If this is possible can someone give a hint or example how to do this?
<%@ Language=VBScript %>
Response.Expires = -1
Server.ScriptTimeout = 600
Session.CodePage = 65001
<!-- #INCLUDE FILE="config.asp"-->
<!-- #INCLUDE FILE="freeaspupload.asp" -->
Dim uploadsDirVar, Upload, fileName, ks, fileKey, oldname, newname
uploadsDirVar = "C:\Inetpub\wwwroot\test\Uploads"
Set Upload = New FreeASPUpload
ks = Upload.UploadedFiles.keys
if (UBound(ks) <> 0) then
for each fileKey in Upload.UploadedFiles.keys
oldname = Upload.UploadedFiles(fileKey).FileName
DateTime = DateAdd("h", 3, Time)
newname = DateTime & oldname
fs.MoveFile oldname , newname
Response.write Upload.Form("firstname") & "<br>"
Response.write Upload.Form("lastname") & "<br>"