We help IT Professionals succeed at work.
Get Started

Permission denied error on file upload

lexcio
lexcio asked
on
529 Views
Last Modified: 2008-01-09
Permission denied on file upload, here is the error:

>>>   Microsoft VBScript runtime error '800a0046'

>>>   Permission denied

>>>   /upload.asp, line 133

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Here is the source code for the page that includes the error - - "uploadgo.asp":
For this posting, I have changed some references to "Null"


<%@ Language=VBScript %>
<%Option Explicit%>
<html>
<head>
<title>Null</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
<!--hide this script from non-javascript-enabled browsers

/* Functions that swaps images. */

/* Functions that handle preload. */

// stop hiding -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


//-->
</script>
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300,left = 262,top = 234');");
}
// End -->
</script>
<style type="text/css">
<!--
.white {  color: #CCCCCC}
-->
</style>
</head>
<body bgcolor="#333333" onLoad="MM_preloadImages('images/left/left_r02_c2_f2.gif','images/left/left_r04_c2_f2.gif','images/left/left_r06_c2_f2.gif','images/left/left_r08_c2_f2.gif','images/left/left_r10_c2_f2.gif','images/left/left_r12_c2_f2.gif','images/left/left_r14_c2_f2.gif','images/left/left_r16_c2_f2.gif','images/topbar/topbar_r1_c1_f2.gif','images/topbar/topbar_r1_c3_f2.gif','images/topbar/topbar_r1_c5_f2.gif','images/topbar/topbar_r1_c7_f2.gif','images/topbar/botbar_r01_c1_f2.gif','images/topbar/botbar_r03_c1_f2.gif','images/topbar/botbar_r05_c1_f2.gif','images/topbar/botbar_r07_c1_f2.gif','images/topbar/botbar_r09_c1_f2.gif','images/topbar/botbar_r13_c1_f2.gif','images/topbar/botbar_r15_c1_f2.gif','images/topbar/botbar_r17_c1_f2.gif','images/topbar/botbar_r19_c1_f2.gif','images/topbar/special_f2.gif')">
<div id="Layer1" style="position: absolute; left: 0px; top: 755px; width: 1004px; height: 44px; z-index: 1; background-color: #6F0000; layer-background-color: #6F0000; border: 1px none #000000">
  <p align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif" size="1">Copyright
  &copy; 2000 Cynergi Marketing Corp. All rights reserved.<br>
    Contact<a href="mailto:jason@null.com" class="white"> webmaster@Null</a>
    with comments or questions regarding this site.</font></p>
</div>
<div id="Layer2" style="position: absolute; left: 0px; top: 158px; width: 180px; height: 4px; z-index: 2; line-height: 4px"><img name="left_r01_c1" src="images/left/left_r01_c1.gif" width="180" height="4" border="0"></div>
<div id="Layer3" style="position: absolute; left: 0px; top: 162px; width: 29px; height: 306px; z-index: 3"><img name="left_r02_c1" src="images/left/left_r02_c1.gif" width="29" height="306" border="0"></div>
<div id="Layer4" style="position: absolute; left: 29px; top: 162px; width: 122px; height: 36px; z-index: 4"><a href="test.asp?Category=Apparel" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r02_c2','','images/left/left_r02_c2_f2.gif',1)" ><img name="left_r02_c2" src="images/left/left_r02_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer5" style="position: absolute; left: 151px; top: 162px; width: 29px; height: 306px; z-index: 5"><img name="left_r02_c3" src="images/left/left_r02_c3.gif" width="29" height="306" border="0"></div>
<div id="Layer6" style="position: absolute; left: 29px; top: 198px; width: 122px; height: 2px; z-index: 6; line-height: 2px"><img name="left_r03_c2" src="images/left/left_r03_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer7" style="position: absolute; left: 29px; top: 200px; width: 122px; height: 36px; z-index: 7"><a href="test.asp?Category=Headwear" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r04_c2','','images/left/left_r04_c2_f2.gif',1)" ><img name="left_r04_c2" src="images/left/left_r04_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer8" style="position: absolute; left: 29px; top: 236px; width: 122px; height: 2px; z-index: 8; line-height: 2px"><img name="left_r05_c2" src="images/left/left_r05_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer9" style="position: absolute; left: 29px; top: 238px; width: 122px; height: 36px; z-index: 9"><a href="test.asp?Category=Bags" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r06_c2','','images/left/left_r06_c2_f2.gif',1)" ><img name="left_r06_c2" src="images/left/left_r06_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer10" style="position: absolute; left: 29px; top: 274px; width: 122px; height: 2px; z-index: 10; line-height: 2px"><img name="left_r07_c2" src="images/left/left_r07_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer11" style="position: absolute; left: 29px; top: 276px; width: 122px; height: 36px; z-index: 11"><a href="test.asp?Category=Rooter" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r08_c2','','images/left/left_r08_c2_f2.gif',1)" ><img name="left_r08_c2" src="images/left/left_r08_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer12" style="position: absolute; left: 29px; top: 312px; width: 122px; height: 2px; z-index: 12; line-height: 2px"><img name="left_r09_c2" src="images/left/left_r09_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer13" style="position: absolute; left: 29px; top: 314px; width: 122px; height: 36px; z-index: 13"><a href="test.asp?Category=Novel" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r10_c2','','images/left/left_r10_c2_f2.gif',1)" ><img name="left_r10_c2" src="images/left/left_r10_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer14" style="position: absolute; left: 29px; top: 350px; width: 122px; height: 2px; z-index: 14; line-height: 2px"><img name="left_r11_c2" src="images/left/left_r11_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer15" style="position: absolute; left: 29px; top: 352px; width: 122px; height: 36px; z-index: 15"><a href="test.asp?Category=Printing" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r12_c2','','images/left/left_r12_c2_f2.gif',1)" ><img name="left_r12_c2" src="images/left/left_r12_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer16" style="position: absolute; left: 29px; top: 388px; width: 122px; height: 2px; z-index: 16; line-height: 2px"><img name="left_r13_c2" src="images/left/left_r13_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer17" style="position: absolute; left: 29px; top: 390px; width: 122px; height: 36px; z-index: 17"><a href="test.asp?Category=Drinkwear" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r14_c2','','images/left/left_r14_c2_f2.gif',1)" ><img name="left_r14_c2" src="images/left/left_r14_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer18" style="position: absolute; left: 29px; top: 426px; width: 122px; height: 2px; z-index: 18; line-height: 2px"><img name="left_r15_c2" src="images/left/left_r15_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer19" style="position: absolute; left: 29px; top: 428px; width: 122px; height: 36px; z-index: 19"><a href="test.asp?Category=Balls" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r16_c2','','images/left/left_r16_c2_f2.gif',1)" ><img name="left_r16_c2" src="images/left/left_r16_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer20" style="position: absolute; left: 29px; top: 464px; width: 122px; height: 4px; z-index: 20; line-height: 4px"><img name="left_r17_c2" src="images/left/left_r17_c2.gif" width="122" height="4" border="0"></div>
<div id="Layer26" style="position: absolute; left: 909px; top: 158px; width: 95px; height: 593px; z-index: 26; background: #000000 url(images/black_back.gif); layer-background-color: #000000; vertical-align: middle; layer-background-image:   url(images/black_back.gif); border: 1px none #000000"></div>
<div id="Layer35" style="position: absolute; left: 0px; top: 472px; width: 180px; height: 23px; z-index: 35"><a href="mission.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r01_c1','','images/topbar/botbar_r01_c1_f2.gif',1)" ><img name="botbar_r01_c1" src="images/topbar/botbar_r01_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer36" style="position: absolute; left: 0px; top: 515px; width: 180px; height: 1px; z-index: 36; line-height: 1px"><img name="botbar_r02_c1" src="images/topbar/botbar_r02_c1.gif" width="180" height="1" border="0"></div>
<div id="Layer37" style="position: absolute; left: 0px; top: 496px; width: 180px; height: 23px; z-index: 37"><a href="cases.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r03_c1','','images/topbar/botbar_r03_c1_f2.gif',1)" ><img name="botbar_r03_c1" src="images/topbar/botbar_r03_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer38" style="position: absolute; left: 0px; top: 539px; width: 180px; height: 1px; z-index: 38; line-height: 1px"><img name="botbar_r04_c1" src="images/topbar/botbar_r04_c1.gif" width="180" height="1" border="0"></div>
<div id="Layer39" style="position: absolute; left: 0px; top: 520px; width: 180px; height: 23px; z-index: 39"><a href="clients.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r05_c1','','images/topbar/botbar_r05_c1_f2.gif',1)" ><img name="botbar_r05_c1" src="images/topbar/botbar_r05_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer40" style="position: absolute; left: 0px; top: 563px; width: 180px; height: 1px; z-index: 40; line-height: 1px"><img name="botbar_r06_c1" src="images/topbar/botbar_r06_c1.gif" width="180" height="1" border="0"></div>
<div id="Layer41" style="position: absolute; left: 0px; top: 544px; width: 180px; height: 23px; z-index: 41"><a href="recs.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r07_c1','','images/topbar/botbar_r07_c1_f2.gif',1)" ><img name="botbar_r07_c1" src="images/topbar/botbar_r07_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer43" style="position: absolute; left: 0px; top: 571px; width: 180px; height: 23px; z-index: 43"><a href="quote2.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r09_c1','','images/topbar/botbar_r09_c1_f2.gif',1)" ><img name="botbar_r09_c1" src="images/topbar/botbar_r09_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer47" style="position: absolute; left: 0px; top: 595px; width: 180px; height: 23px; z-index: 47"><a href="sample.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r13_c1','','images/topbar/botbar_r13_c1_f2.gif',1)" ><img name="botbar_r13_c1" src="images/topbar/botbar_r13_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer49" style="position: absolute; left: 0px; top: 619px; width: 180px; height: 23px; z-index: 49"><a href="uploadform.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r15_c1','','images/topbar/botbar_r15_c1_f2.gif',1)" ><img name="botbar_r15_c1" src="images/topbar/botbar_r15_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer51" style="position: absolute; left: 0px; top: 643px; width: 180px; height: 23px; z-index: 51"><a href="contact.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r17_c1','','images/topbar/botbar_r17_c1_f2.gif',1)" ><img name="botbar_r17_c1" src="images/topbar/botbar_r17_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer53" style="position: absolute; left: 0px; top: 667px; width: 180px; height: 23px; z-index: 53"><a href="default.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r19_c1','','images/topbar/botbar_r19_c1_f2.gif',1)" ><img name="botbar_r19_c1" src="images/topbar/botbar_r19_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer54" style="position: absolute; left: 0px; top: 691px; width: 180px; height: 59px; z-index: 54; line-height: 1px; background-color: #999999; layer-background-color: #999999; border: 1px none #000000"></div>
<div id="Layer55" style="position: absolute; left: 0px; top: 124px; width: 180px; height: 30px; z-index: 55"><a href="#" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('topbar_r1_c1','','images/topbar/topbar_r1_c1_f2.gif',1)" OnClick="MM_openBrWindow('cyn_marketing.htm','marketing','width=800,height=600')" ><img name="topbar_r1_c1" src="images/topbar/topbar_r1_c1.gif" width="180" height="30" border="0"></a></div>
<div id="Layer56" style="position: absolute; left: 180px; top: 123px; width: 1px; height: 30px; z-index: 56"><img name="topbar_r1_c2" src="images/topbar/topbar_r1_c2.gif" width="1" height="30" border="0"></div>
<div id="Layer57" style="position: absolute; left: 181px; top: 124px; width: 180px; height: 30px; z-index: 57"><a href="default.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('topbar_r1_c3','','images/topbar/topbar_r1_c3_f2.gif',1)"  ><img name="topbar_r1_c3" src="images/topbar/topbar_r1_c3.gif" width="180" height="30" border="0"></a></div>
<div id="Layer58" style="position: absolute; left: 361px; top: 123px; width: 1px; height: 30px; z-index: 58"><img name="topbar_r1_c4" src="images/topbar/topbar_r1_c4.gif" width="1" height="30" border="0"></div>
<div id="Layer59" style="position: absolute; left: 362px; top: 124px; width: 180px; height: 30px; z-index: 59"><a href="#" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('topbar_r1_c5','','images/topbar/topbar_r1_c5_f2.gif',1)" OnClick="MM_openBrWindow('cyn_pub.htm','public','width=800,height=600')" ><img name="topbar_r1_c5" src="images/topbar/topbar_r1_c5.gif" width="180" height="30" border="0"></a></div>
<div id="Layer60" style="position: absolute; left: 542px; top: 123px; width: 1px; height: 30px; z-index: 60"><img name="topbar_r1_c6" src="images/topbar/topbar_r1_c6.gif" width="1" height="30" border="0"></div>
<div id="Layer61" style="position: absolute; left: 543px; top: 124px; width: 180px; height: 30px; z-index: 61"><a href="#" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('topbar_r1_c7','','images/topbar/topbar_r1_c7_f2.gif',1)" OnClick="MM_openBrWindow('cyn_imports.htm','imports','width=800,height=600')" ><img name="topbar_r1_c7" src="images/topbar/topbar_r1_c7.gif" width="180" height="30" border="0"></a></div>
<div id="Layer62" style="position: absolute; left: 723px; top: 123px; width: 1px; height: 30px; z-index: 62"><img name="topbar_r1_c8" src="images/topbar/topbar_r1_c8.gif" width="1" height="30" border="0"></div>
<div id="Layer63" style="position: absolute; left: 0px; top: 28px; width: 330px; height: 94px; z-index: 63; background: #000000 url(images/black_back.gif); vertical-align: middle; layer-background-image:   url(images/black_back.gif); border: 1px none #000000">
  <img src="images/splogo.jpg" width="193" align="absmiddle" height="80"></div>
<div id="Layer64" style="position: absolute; left: 330px; top: 28px; width: 673px; height: 94px; z-index: 64; background: #000000 url(images/black_back.gif); vertical-align: middle; layer-background-image:   url(images/black_back.gif); border: 1px none #000000">
  <img src="images/BANNER.gif" width="468" align="absmiddle" height="80"></div>
<div id="Layer42" style="position:absolute; width:180px; height:30px; z-index:68; left: 724px; top: 124px"><a href="#" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('special','','images/topbar/special_f2.gif',1)" OnClick="MM_openBrWindow('cyn_special.htm','special','width=800,height=600')" ><img name="special" src="images/topbar/special.gif" width="180" height="30" border="0"></a></div>
<div id="Layer34" style="position:absolute; width:95px; height:30px; z-index:69; left: 909px; top: 124px; background-color: #999999; layer-background-color: #999999; border: 1px none #000000"></div>
<div id="Layer21" style="position:absolute; width:720px; height:592px; z-index:71; left: 185px; top: 160px">{main_layer}
  <div id="Layer24" style="position: absolute; left: -1px; top: -2px; width: 720px; height: 28px; z-index: 24; background: #666666; vertical-align: middle"><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif"><b>
    <img src="images/trans.gif" width="30" height="30" align="middle">Upload your
    artwork! </b></font></div>
  <div id="Layer29" style="position: absolute; left: -1px; top: 30px; width: 721px; height: 560px; z-index: 29; background: #FFFFFF url(images/LogoLtbig.jpg); vertical-align: top; layer-background-image: url(images/LogoLtbig.jpg); border: 1px none #000000">
    <p align="center"><br>
      <b><font face="Arial, Helvetica, sans-serif">Upload your logos or other
      artwork.</font></b></p>
    <div align="center">
      <p>

<!-- #include file="upload.asp" -->
<%

'NOTE - YOU MUST HAVE VBSCRIPT v5.0 INSTALLED ON YOUR WEB SERVER
'         FOR THIS LIBRARY TO FUNCTION CORRECTLY. YOU CAN OBTAIN IT
'         FREE FROM MICROSOFT WHEN YOU INSTALL INTERNET EXPLORER 5.0
'         OR LATER.


' Create the FileUploader
Dim Uploader, File
Set Uploader = New FileUploader

' This starts the upload process
Uploader.Upload()

'******************************************
' Use [FileUploader object].Form to access
' additional form variables submitted with
' the file upload(s). (used below)
'******************************************
Response.Write "<b>Thank you for your upload " & Uploader.Form("fullname") & "</b><br>"

' Check if any files were uploaded
If Uploader.Files.Count = 0 Then
      Response.Write "File(s) not uploaded."
Else
      ' Loop through the uploaded files
      For Each File In Uploader.Files.Items
            
            ' Check where the user wants to save the file
            If Uploader.Form("saveto") = "disk" Then
      
                  ' Save the file
                  File.SaveToDisk "e:\Stanfield\Null\web\uploads\"
      
            ElseIf Uploader.Form("saveto") = "database" Then
                  
                  ' Open the table you are saving the file to
                  Set RS = Server.CreateObject("ADODB.Recordset")
                  RS.Open "MyUploadTable", "CONNECT STRING OR ADO.Connection", 2, 2
                  RS.AddNew ' create a new record
                  
                  RS("filename")    = File.FileName
                  RS("filesize")        = File.FileSize
                  RS("contenttype") = File.ContentType
            
                  ' Save the file to the database
                  File.SaveToDatabase RS("filedata")
                  
                  ' Commit the changes and close
                  RS.Update
                  RS.Close
            End If
            
            ' Output the file details to the browser
            Response.Write "File Uploaded: " & File.FileName & "<br>"
            Response.Write "Size: " & File.FileSize & " bytes<br>"
            Response.Write "Type: " & File.ContentType & "<br><br>"
      Next
End If

%>
        
    </div>
  </div>
  </div>
<div id="Layer22" style="position:absolute; left:0px; top:0px; width:1003px; height:28px; z-index:72; background-image:  url(images/maroon_back.gif); layer-background-image:  url(images/maroon_back.gif); border: 1px none #000000">
  <div align="center">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="3%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">&nbsp;</font></td>
        <td width="46%" class="white"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><font color="#FFFFFF"><%= FormatDateTime(Date, 1) %></font></font>
        </td>
        <td width="47%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><font color="#FFFFFF">ADD
          YOURSELF TO OUR EMAIL LIST TO RECEIVE NEWS AND UPDATES!<img src="images/trans.gif" width="15" height="5" align="absmiddle"><a href="#" onClick="MM_openBrWindow('addme.htm','Addme','width=350,height=350')"><img src="images/addme.gif" width="51" height="21" align="absmiddle" border="0"></a></font></font>
        </td>
        <td width="4%">&nbsp;</td>
      </tr>
    </table>
  </div>
</div>
</body>
</html>


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Here is the code for the page that posts to "uploadgo.asp", which is "uploadform.asp":

<html>
<head>
<title>Null</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
<!--hide this script from non-javascript-enabled browsers

/* Functions that swaps images. */

/* Functions that handle preload. */

// stop hiding -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


//-->
</script>
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300,left = 262,top = 234');");
}
// End -->
</script>
<style type="text/css">
<!--
.white {  color: #CCCCCC}
-->
</style>
</head>
<body bgcolor="#333333" onLoad="MM_preloadImages('images/left/left_r02_c2_f2.gif','images/left/left_r04_c2_f2.gif','images/left/left_r06_c2_f2.gif','images/left/left_r08_c2_f2.gif','images/left/left_r10_c2_f2.gif','images/left/left_r12_c2_f2.gif','images/left/left_r14_c2_f2.gif','images/left/left_r16_c2_f2.gif','images/topbar/topbar_r1_c1_f2.gif','images/topbar/topbar_r1_c3_f2.gif','images/topbar/topbar_r1_c5_f2.gif','images/topbar/topbar_r1_c7_f2.gif','images/topbar/botbar_r01_c1_f2.gif','images/topbar/botbar_r03_c1_f2.gif','images/topbar/botbar_r05_c1_f2.gif','images/topbar/botbar_r07_c1_f2.gif','images/topbar/botbar_r09_c1_f2.gif','images/topbar/botbar_r13_c1_f2.gif','images/topbar/botbar_r15_c1_f2.gif','images/topbar/botbar_r17_c1_f2.gif','images/topbar/botbar_r19_c1_f2.gif','images/topbar/special_f2.gif')">
<div id="Layer1" style="position: absolute; left: 0px; top: 755px; width: 1004px; height: 44px; z-index: 1; background-color: #6F0000; layer-background-color: #6F0000; border: 1px none #000000">
  <p align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif" size="1">Copyright
  &copy; All rights reserved.<br>
    Contact<a href="mailto:null@null.com" class="white"> webmaster@null</a>
    with comments or questions regarding this site.</font></p>
</div>
<div id="Layer2" style="position: absolute; left: 0px; top: 158px; width: 180px; height: 4px; z-index: 2; line-height: 4px"><img name="left_r01_c1" src="images/left/left_r01_c1.gif" width="180" height="4" border="0"></div>
<div id="Layer3" style="position: absolute; left: 0px; top: 162px; width: 29px; height: 306px; z-index: 3"><img name="left_r02_c1" src="images/left/left_r02_c1.gif" width="29" height="306" border="0"></div>
<div id="Layer4" style="position: absolute; left: 29px; top: 162px; width: 122px; height: 36px; z-index: 4"><a href="test.asp?Category=Apparel" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r02_c2','','images/left/left_r02_c2_f2.gif',1)" ><img name="left_r02_c2" src="images/left/left_r02_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer5" style="position: absolute; left: 151px; top: 162px; width: 29px; height: 306px; z-index: 5"><img name="left_r02_c3" src="images/left/left_r02_c3.gif" width="29" height="306" border="0"></div>
<div id="Layer6" style="position: absolute; left: 29px; top: 198px; width: 122px; height: 2px; z-index: 6; line-height: 2px"><img name="left_r03_c2" src="images/left/left_r03_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer7" style="position: absolute; left: 29px; top: 200px; width: 122px; height: 36px; z-index: 7"><a href="test.asp?Category=Headwear" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r04_c2','','images/left/left_r04_c2_f2.gif',1)" ><img name="left_r04_c2" src="images/left/left_r04_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer8" style="position: absolute; left: 29px; top: 236px; width: 122px; height: 2px; z-index: 8; line-height: 2px"><img name="left_r05_c2" src="images/left/left_r05_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer9" style="position: absolute; left: 29px; top: 238px; width: 122px; height: 36px; z-index: 9"><a href="test.asp?Category=Bags" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r06_c2','','images/left/left_r06_c2_f2.gif',1)" ><img name="left_r06_c2" src="images/left/left_r06_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer10" style="position: absolute; left: 29px; top: 274px; width: 122px; height: 2px; z-index: 10; line-height: 2px"><img name="left_r07_c2" src="images/left/left_r07_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer11" style="position: absolute; left: 29px; top: 276px; width: 122px; height: 36px; z-index: 11"><a href="test.asp?Category=Rooter" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r08_c2','','images/left/left_r08_c2_f2.gif',1)" ><img name="left_r08_c2" src="images/left/left_r08_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer12" style="position: absolute; left: 29px; top: 312px; width: 122px; height: 2px; z-index: 12; line-height: 2px"><img name="left_r09_c2" src="images/left/left_r09_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer13" style="position: absolute; left: 29px; top: 314px; width: 122px; height: 36px; z-index: 13"><a href="test.asp?Category=Novel" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r10_c2','','images/left/left_r10_c2_f2.gif',1)" ><img name="left_r10_c2" src="images/left/left_r10_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer14" style="position: absolute; left: 29px; top: 350px; width: 122px; height: 2px; z-index: 14; line-height: 2px"><img name="left_r11_c2" src="images/left/left_r11_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer15" style="position: absolute; left: 29px; top: 352px; width: 122px; height: 36px; z-index: 15"><a href="test.asp?Category=Printing" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r12_c2','','images/left/left_r12_c2_f2.gif',1)" ><img name="left_r12_c2" src="images/left/left_r12_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer16" style="position: absolute; left: 29px; top: 388px; width: 122px; height: 2px; z-index: 16; line-height: 2px"><img name="left_r13_c2" src="images/left/left_r13_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer17" style="position: absolute; left: 29px; top: 390px; width: 122px; height: 36px; z-index: 17"><a href="test.asp?Category=Drinkwear" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r14_c2','','images/left/left_r14_c2_f2.gif',1)" ><img name="left_r14_c2" src="images/left/left_r14_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer18" style="position: absolute; left: 29px; top: 426px; width: 122px; height: 2px; z-index: 18; line-height: 2px"><img name="left_r15_c2" src="images/left/left_r15_c2.gif" width="122" height="2" border="0"></div>
<div id="Layer19" style="position: absolute; left: 29px; top: 428px; width: 122px; height: 36px; z-index: 19"><a href="test.asp?Category=Balls" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('left_r16_c2','','images/left/left_r16_c2_f2.gif',1)" ><img name="left_r16_c2" src="images/left/left_r16_c2.gif" width="122" height="36" border="0"></a></div>
<div id="Layer20" style="position: absolute; left: 29px; top: 464px; width: 122px; height: 4px; z-index: 20; line-height: 4px"><img name="left_r17_c2" src="images/left/left_r17_c2.gif" width="122" height="4" border="0"></div>
<div id="Layer26" style="position: absolute; left: 909px; top: 158px; width: 95px; height: 593px; z-index: 26; background: #000000 url(images/black_back.gif); layer-background-color: #000000; vertical-align: middle; layer-background-image:   url(images/black_back.gif); border: 1px none #000000"></div>
<div id="Layer35" style="position: absolute; left: 0px; top: 472px; width: 180px; height: 23px; z-index: 35"><a href="mission.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r01_c1','','images/topbar/botbar_r01_c1_f2.gif',1)" ><img name="botbar_r01_c1" src="images/topbar/botbar_r01_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer36" style="position: absolute; left: 0px; top: 515px; width: 180px; height: 1px; z-index: 36; line-height: 1px"><img name="botbar_r02_c1" src="images/topbar/botbar_r02_c1.gif" width="180" height="1" border="0"></div>
<div id="Layer37" style="position: absolute; left: 0px; top: 496px; width: 180px; height: 23px; z-index: 37"><a href="cases.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r03_c1','','images/topbar/botbar_r03_c1_f2.gif',1)" ><img name="botbar_r03_c1" src="images/topbar/botbar_r03_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer38" style="position: absolute; left: 0px; top: 539px; width: 180px; height: 1px; z-index: 38; line-height: 1px"><img name="botbar_r04_c1" src="images/topbar/botbar_r04_c1.gif" width="180" height="1" border="0"></div>
<div id="Layer39" style="position: absolute; left: 0px; top: 520px; width: 180px; height: 23px; z-index: 39"><a href="clients.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r05_c1','','images/topbar/botbar_r05_c1_f2.gif',1)" ><img name="botbar_r05_c1" src="images/topbar/botbar_r05_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer40" style="position: absolute; left: 0px; top: 563px; width: 180px; height: 1px; z-index: 40; line-height: 1px"><img name="botbar_r06_c1" src="images/topbar/botbar_r06_c1.gif" width="180" height="1" border="0"></div>
<div id="Layer41" style="position: absolute; left: 0px; top: 544px; width: 180px; height: 23px; z-index: 41"><a href="recs.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r07_c1','','images/topbar/botbar_r07_c1_f2.gif',1)" ><img name="botbar_r07_c1" src="images/topbar/botbar_r07_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer43" style="position: absolute; left: 0px; top: 571px; width: 180px; height: 23px; z-index: 43"><a href="quote2.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r09_c1','','images/topbar/botbar_r09_c1_f2.gif',1)" ><img name="botbar_r09_c1" src="images/topbar/botbar_r09_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer47" style="position: absolute; left: 0px; top: 595px; width: 180px; height: 23px; z-index: 47"><a href="sample.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r13_c1','','images/topbar/botbar_r13_c1_f2.gif',1)" ><img name="botbar_r13_c1" src="images/topbar/botbar_r13_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer49" style="position: absolute; left: 0px; top: 619px; width: 180px; height: 23px; z-index: 49"><a href="uploadform.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r15_c1','','images/topbar/botbar_r15_c1_f2.gif',1)" ><img name="botbar_r15_c1" src="images/topbar/botbar_r15_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer51" style="position: absolute; left: 0px; top: 643px; width: 180px; height: 23px; z-index: 51"><a href="contact.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r17_c1','','images/topbar/botbar_r17_c1_f2.gif',1)" ><img name="botbar_r17_c1" src="images/topbar/botbar_r17_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer53" style="position: absolute; left: 0px; top: 667px; width: 180px; height: 23px; z-index: 53"><a href="default.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('botbar_r19_c1','','images/topbar/botbar_r19_c1_f2.gif',1)" ><img name="botbar_r19_c1" src="images/topbar/botbar_r19_c1.gif" width="180" height="23" border="0"></a></div>
<div id="Layer54" style="position: absolute; left: 0px; top: 691px; width: 180px; height: 59px; z-index: 54; line-height: 1px; background-color: #999999; layer-background-color: #999999; border: 1px none #000000"></div>
<div id="Layer55" style="position: absolute; left: 0px; top: 124px; width: 180px; height: 30px; z-index: 55"><a href="#" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('topbar_r1_c1','','images/topbar/topbar_r1_c1_f2.gif',1)" OnClick="MM_openBrWindow('cyn_marketing.htm','marketing','width=800,height=600')" ><img name="topbar_r1_c1" src="images/topbar/topbar_r1_c1.gif" width="180" height="30" border="0"></a></div>
<div id="Layer56" style="position: absolute; left: 180px; top: 123px; width: 1px; height: 30px; z-index: 56"><img name="topbar_r1_c2" src="images/topbar/topbar_r1_c2.gif" width="1" height="30" border="0"></div>
<div id="Layer57" style="position: absolute; left: 181px; top: 124px; width: 180px; height: 30px; z-index: 57"><a href="default.asp" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('topbar_r1_c3','','images/topbar/topbar_r1_c3_f2.gif',1)"  ><img name="topbar_r1_c3" src="images/topbar/topbar_r1_c3.gif" width="180" height="30" border="0"></a></div>
<div id="Layer58" style="position: absolute; left: 361px; top: 123px; width: 1px; height: 30px; z-index: 58"><img name="topbar_r1_c4" src="images/topbar/topbar_r1_c4.gif" width="1" height="30" border="0"></div>
<div id="Layer59" style="position: absolute; left: 362px; top: 124px; width: 180px; height: 30px; z-index: 59"><a href="#" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('topbar_r1_c5','','images/topbar/topbar_r1_c5_f2.gif',1)" OnClick="MM_openBrWindow('cyn_pub.htm','public','width=800,height=600')" ><img name="topbar_r1_c5" src="images/topbar/topbar_r1_c5.gif" width="180" height="30" border="0"></a></div>
<div id="Layer60" style="position: absolute; left: 542px; top: 123px; width: 1px; height: 30px; z-index: 60"><img name="topbar_r1_c6" src="images/topbar/topbar_r1_c6.gif" width="1" height="30" border="0"></div>
<div id="Layer61" style="position: absolute; left: 543px; top: 124px; width: 180px; height: 30px; z-index: 61"><a href="#" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('topbar_r1_c7','','images/topbar/topbar_r1_c7_f2.gif',1)" OnClick="MM_openBrWindow('cyn_imports.htm','imports','width=800,height=600')" ><img name="topbar_r1_c7" src="images/topbar/topbar_r1_c7.gif" width="180" height="30" border="0"></a></div>
<div id="Layer62" style="position: absolute; left: 723px; top: 123px; width: 1px; height: 30px; z-index: 62"><img name="topbar_r1_c8" src="images/topbar/topbar_r1_c8.gif" width="1" height="30" border="0"></div>
<div id="Layer63" style="position: absolute; left: 0px; top: 28px; width: 330px; height: 94px; z-index: 63; background: #000000 url(images/black_back.gif); vertical-align: middle; layer-background-image:   url(images/black_back.gif); border: 1px none #000000">
  <img src="images/splogo.jpg" width="193" align="absmiddle" height="80"></div>
<div id="Layer64" style="position: absolute; left: 330px; top: 28px; width: 673px; height: 94px; z-index: 64; background: #000000 url(images/black_back.gif); vertical-align: middle; layer-background-image:   url(images/black_back.gif); border: 1px none #000000">
  <img src="images/BANNER.gif" width="468" align="absmiddle" height="80"></div>
<div id="Layer42" style="position:absolute; width:180px; height:30px; z-index:68; left: 724px; top: 124px"><a href="#" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage('special','','images/topbar/special_f2.gif',1)" OnClick="MM_openBrWindow('cyn_special.htm','special','width=800,height=600')" ><img name="special" src="images/topbar/special.gif" width="180" height="30" border="0"></a></div>
<div id="Layer34" style="position:absolute; width:95px; height:30px; z-index:69; left: 909px; top: 124px; background-color: #999999; layer-background-color: #999999; border: 1px none #000000"></div>
<div id="Layer21" style="position:absolute; width:720px; height:592px; z-index:71; left: 185px; top: 160px">{main_layer}
  <div id="Layer24" style="position: absolute; left: -1px; top: -2px; width: 720px; height: 28px; z-index: 24; background: #666666; vertical-align: middle"><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif"><b>
    <img src="images/trans.gif" width="30" height="30" align="middle">Upload your
    artwork! </b></font></div>
  <div id="Layer29" style="position: absolute; left: -1px; top: 30px; width: 721px; height: 560px; z-index: 29; background: #FFFFFF url(images/LogoLtbig.jpg); vertical-align: top; layer-background-image: url(images/LogoLtbig.jpg); border: 1px none #000000">
    <p align="center"><br>
      <b><font face="Arial, Helvetica, sans-serif">Upload your logos or other
      artwork to Cynergi Sports.</font></b></p>
    <div align="center">
      <p>
        <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="uploadgo.asp">
        <TABLE BORDER=0>
      <tr><td><b>Enter your fullname:</b><br><INPUT TYPE=TEXT SIZE=40 NAME="FULLNAME"></td></tr>
      <tr><td><b>Select a file to upload:</b><br><INPUT TYPE=FILE SIZE=50 NAME="FILE1"></td></tr>
    <INPUT TYPE=HIDDEN NAME="saveto" value="disk">
      <tr><td align="center"><INPUT TYPE=SUBMIT VALUE="Upload My File!"></td></tr>
      </TABLE>
</FORM>
        
    </div>
  </div>
  </div>
<div id="Layer22" style="position:absolute; left:0px; top:0px; width:1003px; height:28px; z-index:72; background-image:  url(images/maroon_back.gif); layer-background-image:  url(images/maroon_back.gif); border: 1px none #000000">
  <div align="center">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="3%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">&nbsp;</font></td>
        <td width="46%" class="white"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><font color="#FFFFFF"><%= FormatDateTime(Date, 1) %></font></font>
        </td>
        <td width="47%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><font color="#FFFFFF">ADD
          YOURSELF TO OUR EMAIL LIST TO RECEIVE NEWS AND UPDATES!<img src="images/trans.gif" width="15" height="5" align="absmiddle"><a href="#" onClick="MM_openBrWindow('addme.htm','Addme','width=350,height=350')"><img src="images/addme.gif" width="51" height="21" align="absmiddle" border="0"></a></font></font>
        </td>
        <td width="4%">&nbsp;</td>
      </tr>
    </table>
  </div>
</div>
</body>
</html>
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE