Kod
prefs['uid'] = user.options[user.selectedIndex].value;
document.getElementById("uid").value = prefs['uid'];
document.getElementById("uid").value = prefs['uid'];
<?php <input type="hidden" name="uid" value=""> ?>
wywala mi tu jaki¶ b±d składni a zielony z js jestem....