HTML Code:<script 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>I'm trying to record what number some one has chosen from this drop down menu. any Idea on how I can improve this code?PHP Code:<select width="20" name="noMenu" onchange="MM_jumpMenu('parent',this,0)">
<?php $noNumbers = 1; while($noNumbers<100){?>
<option value=""><?php echo $noNumbers; ?></option>
<?php $noNumbers++;}?>
</select><?php echo $_REQUEST['noMenu']; ?>
(I'm using the form the drop down box is on for somthing else and it is set to GET)




Reply With Quote