Hi
I am new to javascript.
I have two drop downs used to reload the page displaying selected information.
How do I get the OnChange function to pass year and user form the drop down.
I also need to pass data in the array $month.
<html>
<head>
<body>
<script language="JavaScript" type="text/JavaScript">
<!--
function OnChange(dropdown)
{
//reload page after drop down selection
window.location.href="http://localhost/month_view.php?u_user_id=" +
dropdown.options[dropdown.selectedIndex].value "&year="+ "&month="+ ;
}
--->
<table>
<tr><td>
<!--year drop down-->
<select name ="year" onChange ="javascript:OnChange(this)"
<option value="">Select</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
</select>
<select name = "user_id" onChange ="javascript:OnChange(this)"
<option value="">Select</option>
<option value="1">Frank</option>
<option value="2">Mark</option>
</select>
</td>
</tr>
<tr>
<td>
<?php
//display information based on selected year, month and user
display_info($year, $month, $user);
?>
</td>
</tr>
</table>
</body>
</head>
</html>