hi all
i use the folowing code structure

<form...>
<CENTER>
<TABLE...>


.
.
.
.

</table...>
</center>
</form>

my problem is that i creats session variable on the server and i have "login" button in the form - i want a function that when i press on the login button there will be a script or function that open connection to database and quering some data in the database - its sounds bizzare but my froblem is how to call this funcation and how to access the session variable i know how to compare it with the appropriate rs etc....?????
and...thanks for any help