<html>
<body bgcolor="black">
<form action="lesson1.php" method="get" name="form2">
<input type="hidden" name="hiddenvalue" value="hiddenstuff"><br>
<input type="Checkbox" name="check1" value="yup"> Checkbox here<br>
<input type="Submit" value="Take A Look" align="MIDDLE">
</form>
<?php
if(check1==yup)
{
$id=1;
};
$db = mysql_connect("x","x", "x");
mysql_select_db("x",$db);
$requete = "SELECT * FROM seb WHERE id=$id";
$result = mysql_query ($requete,$db);
$seb = mysql_fetch_object($result);
mysql_free_result($result);
?>
<TEXTAREA ROWS="30" COLS="90">
<?php Print($seb->name); ?>
</textarea>
</html>
this is my code, now what i would like it to do is, whenever u have the checkbox marked and u click the take a look button, i would like the If function to understand that the checkbox was clicked and then affect my variable $id to 1.
plz help