Hi there
I'm trying to create a button which will exit my php-session un go to my
main page.
I thought of some thing like this:
....
<script language=JavaScript>
function fonct_form(form)
{
<?php session_unregister( "uid" );
session_unregister( "lang" );
session_destroy();
session_start();
?>
document.location.href="http://www.mysite.com";
}
.....
<TD><input type='button' onClick='fonc_form(this.form)'
value='quit'></TD></TR>
......
But this doesn't work.
Thanks in advance for any help
Ralf