abnfire is right.... PHP is server side scripting... all processing occurs on the server. JS is client side scripting, all processing happens inside the user's browser.
JS example:
<html>
<head><title>Matching select example</title>
<script language="javascript">
<!--
function sMatch(aWhat, aTo) {
aTo.selectedIndex = aWhat.selectedIndex;
}
// -->
</script>
</head>
<body>
<form action="post" name="dForm">
<select name="sOne" onChange="sMatch(this, document.dForm.sTwo)">
<option>one</option>
<option>two</option>
</select>
<select name="sTwo" onChange="sMatch(this, document.dForm.sOne)">
<option>one</option>
<option>two</option>
</select>
</body>
</html>