This probably isn't very difficult, but I can't seem to get it right. I want a user of my site that I am creating to be able to pick more than one selection from a topic using check boxes. Whenever I check off more than one box from a group I only get the results from one of the checked selections. Here's an example of the form I am using.
<form method="POST" action="Http://mysite.com/1.php">
<p><b>ANIMALS</b></p>
<p><input type="checkbox" name="animals[]" value="cats">Cats</p>
<p><input type="checkbox" name="animals[]" value="dogs">Dogs</p>
<p><input type="checkbox" name="animals[]" value="birds">Birds</p>
<p><input type="checkbox" name="animals[]" value="turtles">Turtles</p>
<p><input type="submit" value="Submit" name="submit"><input type="reset" value="Reset" name="reset"></p>
</form>
I put brackets [] after the name of the group in the form, and my select statement looks something like this.
....."select * from table_name where animals = '$animals'";
where am I going wrong?