Shady2k5
08-28-2006, 03:35 PM
Hi.
i'm trying to use javascript with in my php code but i'm having some problems...
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<select name="menu" size="1" onChange="MM_jumpMenu('parent',this,0)">
i'd like to use a drop down menu the same way, however i want the same page to be reloaded and a value passed to the reloaded page.. e.g. <option selected value="1">GENERAL</option> this will reload the page and pass the value (samepage.php?1). can anyone help me with this? thanx!
i'm trying to use javascript with in my php code but i'm having some problems...
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<select name="menu" size="1" onChange="MM_jumpMenu('parent',this,0)">
i'd like to use a drop down menu the same way, however i want the same page to be reloaded and a value passed to the reloaded page.. e.g. <option selected value="1">GENERAL</option> this will reload the page and pass the value (samepage.php?1). can anyone help me with this? thanx!