I suppose it is an easy question, i have the following
Code: Select all
<form id="form1" name="form1" method="post" action="2.php">
<label>
<input name="check1" type="checkbox" id="check1" value="1" />
Opc1<br />
</label>
<label>
<input name="check2" type="checkbox" id="check2" value="2" />
</label>
Opc2
<p>
<label>
<input type="submit" name="Submit" value="Submit" />
</label>
</p>
</form>Code: Select all
<?php
echo $_POST['check1'];
echo "<br>";
echo $_POST['check2'];
?>What can I do to solve this prob??
Thanks in advanced!!