Fejl "mappenavn" er ikke defineret
Er der nogen der kan hitte ud af hvorfor jeg får en fejl hver gang jeg vælger noget fra min select-box?Har lagt koden ved her:
<HTML>
<HEAD>
<TITLE>tester</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function ShowProgress()
{
strAppVersion = navigator.appVersion;
if (document.uploadForm.THEFILE.value != "")
{
if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4)
{
winstyle = "dialogWidth=390px; dialogHeight:145px; center:yes";
window.showModelessDialog('framebar.asp?to=10&PID=02B393B302AF05C2&b=IE',null,winstyle);
}
else
{
window.open('framebar.asp?to=10&PID=02B393B302AF05C2&b=NN','','width=370,height=115', true);
}
}
return true;
}
</SCRIPT>
<style>
<!--body {
scrollbar-face-color:#006633;
scrollbar-shadow-color:#33CC99;
scrollbar-highlight-color:#33CC99;
scrollbar-3dlight-color:#006633;
scrollbar-darkshadow-color:#006633;
scrollbar-track-color:#006633;
scrollbar-arrow-color:#33CC99;
}-->
</style>
<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY bgcolor="#006633">
<FORM NAME="uploadForm" METHOD="POST" ENCTYPE="multipart/form-data" ACTION="upload.asp?PID=02B393B302AF05C2" onsubmit="return ShowProgress();">
<TABLE CELLSPACING=0 CELLPADDING=3>
<TD class="wTextSmall">I hvilken mappe skal billedet ligge?:</TD>
<TD class="wTextSmall">
<select name="folder" style="width: 240px;" onchange="eval(this.value)">
<option value="Diverse">Diverse</option>
<option value=Julen_2003>Julen 2003</option>
<option value="self.location.href='upload_form.asp?do=new'">-------------------- Ny mappe --------------------
</select>
</TD><TR>
<TD class="wTextSmall">Fil:</TD>
<TD class="wTextSmall"><INPUT TYPE=FILE style="width: 240px;" NAME="THEFILE"></TD><TR>
<TD class="wTextSmall">Titel:</TD>
<TD class="wTextSmall"><INPUT TYPE=TEXT style="width: 240px;" NAME="Titel"></TD><TR>
<TD class="wTextSmall">Beskrivelse:</TD>
<TD class="wTextSmall"><INPUT TYPE=TEXT style="width: 240px;" NAME="Description"></TD><TR>
<TD class="wTextSmall">Hvornår er billedet taget?:</TD>
<TD class="wTextSmall"><INPUT TYPE=TEXT style="width: 240px;" NAME="Dato"></TD><TR>
<TD class="wTextSmall">Hvor er billedet taget?:</TD>
<TD class="wTextSmall"><INPUT TYPE=TEXT style="width: 240px;" NAME="Sted"></TD><TR>
<TD class="wTextSmall">Må billedet kunne sendes som postkort?:</TD>
<TD class="wTextSmall"><input name="postkort" id="postkort" type="checkbox" value="True"></TD><TR>
<TD class="wTextSmall" COLSPAN=2><INPUT TYPE=SUBMIT VALUE="Upload"></TD><TR>
</TABLE>
</FORM>
</FONT>
</BODY>
</HTML>
