i have a dropdown menu that goes like this:
[code]<script language=”JavaScript” type=”text/JavaScript”>
<!–
<SCRIPT TYPE=”text/javascript”>
<!–
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//–>
</SCRIPT>
<FORM
ACTION=”../cgi-bin/redirect.pl”
METHOD=POST onSubmit=”return dropdown(this.gourl)”>
<div align=”center”>
<INPUT TYPE=SUBMIT VALUE=”Check”>
<select name=”select” size=”1″ style=”background-color:#E1D193″ onChange=”displaydesc(document.form1.select1, thetext1, ‘textcontainer1’)”>
<option value=”” selected>Choose A F2P Quest </option>
<option value=”Quests/BFK.htm”>Black Knight’s Fortress – 2</option>
</select>
</div>
</FORM>
but when i select “Black Knight’s Fortress – 2” and then click on check, it links to “file/…/cgi-bin/redirect.pl” instead of “file/…/quests/BFK.htm”
how come?? can anybody help me?
the htm file linked by the dropdown menu is located in a subfile in the file where the htm file containing the menu is… (crystal clear?)