I have a form that posts to createcsv.php. The form has two fields "entmonth"
and "entyear"
. I am having trouble in createcsv.php where "entmonth"
pulls correctly, but "entyear"
doesn't seem to pull the $_POST['entyear']
variable. I have some input and need to know where I have gone wrong in these lines of code.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$entmonh='$_POST[entmonth]';
$entyear='$_POST[entyear]';
$select = "SELECT * FROM POs WHERE entmonth = '$entmonth' AND entyear = '$entyear'";