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=JavaSc ript>
function fonct_form(form )
{
<?php session_unregis ter( "uid" );
session_unregis ter( "lang" );
session_destroy ();
session_start() ;
?>
document.locati on.href="http://www.mysite.com" ;
}
.....
<TD><input type='button' onClick='fonc_f orm(this.form)'
value='quit'></TD></TR>
......
But this doesn't work.
Thanks in advance for any help
Ralf
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=JavaSc ript>
function fonct_form(form )
{
<?php session_unregis ter( "uid" );
session_unregis ter( "lang" );
session_destroy ();
session_start() ;
?>
document.locati on.href="http://www.mysite.com" ;
}
.....
<TD><input type='button' onClick='fonc_f orm(this.form)'
value='quit'></TD></TR>
......
But this doesn't work.
Thanks in advance for any help
Ralf
Comment