<?php if(isset($_POST['submit'])) { $my_cat=$_POST['category']; include('db_store.php'); echo "SELECT * FROM tabl_name where category_id='".$my_cat."'; } ?>