Results 1 to 2 of 2

Thread: Uploading

  1. #1
    Join Date
    Dec 1969

    Default Uploading

    I got an upload scripts from aspin.com and i wanted to update table GAMES as well as upload the file. but when i make the enctype multipart/form-data is does no work when the lines : <BR><BR>Set conn = Server.CreateObject("ADODB.Connection") <BR>conn.Open strCon<BR><BR>SQL = "UPDATE tblGames SET Replay = &#039;" _ <BR>& strSaveName & "&#039; WHERE ID = " & Request.Form("ID")<BR><BR>conn.Execute SQL <BR><BR>conn.Close <BR><BR><BR>are in it, but when i take it out, it uploads just fine. and then when i take out the enctype it updates the database, and doesn&#039;t upload the replay.<BR><BR>Can anyone tell me what I am doing wrong here? Thanks.

  2. #2
    Join Date
    Dec 1969

    Default RE: Uploading

    you cannot access the form elements like Request.Form("ID")<BR>when you use that enctype.<BR>Use uploadname.Form("ID") instead.(uploadname is the name of your upload component object)<BR><BR>HTH<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts