Okay, I am sure this will be painfully simple, but I have looked it over for a couple of hours now, and I am obviously missing something. I am trying to get a start date and a stop date via input from a user to use as variables in a MySQL query, but for some reason, I can't get the variable to pass from one page to the next... Will one of you masters help me find my goof?
First page has the following at the top of the code: <?php session_start(); $_SESSION['startdate'] = $startdate; $_SESSION['stopdate'] = $stopdate; ?> Then I am getting the data entry in the following form code: <form name="viewbydate" method="post" action="javascript:popUp('viewbydate.php')"> <li> All reports from one date to another: Start <input name="startdate" type="text" size="15" maxlength="30"> Stop <input name="stopdate" type="text" size="15" maxlength="30"> <input name="button2" type="submit" value="GO"> </form> The second page starts by displaying this info: <h1 align="center"><strong>Reports received between <?php echo "$startdate"; ?> and <?php echo "$stopdate"; ?>:</strong></h1> The regular text displays, but there is just white space where the $startdate and $stopdate should be. Thanks in Advance!! Chase -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php