Hi
Thanks for the response and suggestion.
I could not a single function to work.
I could get 2 seperate functions working and it does the job.
I am curious why your suggestion won;t work as one function but will wor as two?
solution
<html>
<head>
<script language="javascript" type="text/javascript">
function YearChange()
{
var year = document.getElementById('year').value;
window.location.href="http://localhost/month_view.php?year=" + year;
}
function ProChange()
{
var providerId = document.getElementById('provider_id').value;
window.location.href="http://localhost/month_view.php?u_org_pro_id=" + providerId;
}
</script>
</head>
<body>
<table>
<tr><td>
<select name= "year" onchange="javascript:YearChange();">
<?
//dynamic year dropdown 14 years (4 back, current and 9 forward)
year_only($year);
?>
</select>
<select name= "user_id" onchange="javascript:ProChange();">
<?
//display information based on selected year, month and user
display_info($year, $month, $user);
?>
</select>
</td>
</tr>
</table>
</body>
</html>
Last edited by assgar; Jul 13th, 2008 at 10:10 pm.
Reputation Points: 24
Solved Threads: 0
Junior Poster in Training
Offline 89 posts
since Oct 2006