Menu
I would like to perform IF script if there is SUBMIT. Do you know how to give variable $guest value 0 if it is not checked? Need help
Code is the following:
[code=php]
<?php
if (isset($_POST[‘guest’]))
{
if (!empty ($guest))
{include(“logout.php”);}
else
{header(‘Location: home.php’);}
}
?>
and FORM HTML:
[code=html]
<FORM>
<form method=”post” >
<input type=”checkbox” name=”guest” value=”1″ checked=”checked”>I would like to be user as Guest
<br /><center><input type=”image” src=”images/submit.gif” /></center>
</FORM>