assuming your field in the database for holding the dates is called dateField, and the values you pass in the where clause are the correct format, and the dateField is a valid mysql datetime, timestamp, date, etc type, you can do this:
$query = "SELECT * FROM table WHERE dateField > '{$_POST['beginDate']}' AND dateField < '{$_POST['endDate'] }'";