I have a code like this abc.php I want to create an array of check boxes but if I try accessing the name or the id, it doesn't seem to work.Is there any alternative way to do this?
<html>
<body>
<form method="post">
<?php
echo ""."<input type='checkbox' name='check[]' id='check[]' />"
$c=0;
if(isset($_POST['check[$c]'])){
echo "checked";
}
?>
</form>
</body>
</html>