The script working only if I'm attaching a file. I not, it won't let me enter the rest of the text into the database.
The code:
What can it be?Code:Set Upload = Server.CreateObject("Persits.Upload.1") Upload.OverwriteFiles = False On Error Resume Next Upload.SetMaxSize 1048576 'Limit files to 1MB Count = Upload.Save("c:\hosting\mydomain") If Err <> 0 Then Err.Description Else color = Upload.Form ("color") size = Upload.Form ("size") Set File = Upload.Files(1) File.OriginalPath set con = server.CreateObject("ADODB.Connection") con.Open DSN SQL = "INSERT INTO testTBL (color,size,myfile) VALUES('" & shape & "', '" & size & "', '" & File.OriginalPath & "')" con.Execute SQL End If con.close set con = Nothing response.redirect "great.asp"
Thanks!


Reply With Quote
Bookmarks