Hi,

How can you use $_SERVER['PHP_SELF'] within javascript in the manner below

Code:
<script language="JavaScript"> 
function reload(form) { 
var val=form.cat.options[form.cat.options.selectedIndex].value; 
self.location='$_SERVER['PHP_SELF']?action=homework&cat=' + val ; 
}
</script>
Thanks