with this code?
<%
Dim ID
Dim Trick
Trick= request.form("Trick")
Dim Skier
Skier= request.form("skier")
Dim url
url=request.form("url")
Dim Photog
Photog= request.form("photog")
Dim connn
connn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=d:\conntomydatabase"
Dim con
If Len(request.form("File1")) > 0 Then
response.redirect("/inserta.asp")
Else
sql="INSERT INTO images (url,Trick,Skier,Photog) values('" & url & "','"& Trick &"','"& Skier &"','" & Photog & "')"
End If
con.Open connn
con.Execute sql
con.Close
Set con= Nothing
%>
what i am trying to do is see if a user has decided to upload a file insted of adding a url to it. i am using Asp SimpleUpload and.
ps:
i get this error:quote:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/insert.asp, line 19