is it possible to alert session variable.is the syntax is correct...
<html>
<head>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--
function login()
{
alert($_SESSION["un"]);
}
-->
</SCRIPT>
</head>
<body bgcolor="#f1f3f3">
<form>
<?php
print "<input type='submit' value='submit' onClick='javascript:login();'>";
?>
</form>
</body>
</html>