Makes sense. I've been poking around trying to find specifics on how to do this, but I don't believe the session is setting properly and I'm not sure why. I have error reporting turned on on both pages.
On my cart.php page...
<?php
@session_start();
?>
is set on line 1
The form is set to 'post'
The select tag is properly identified as <select name="location" id="location"> and values are set properly on within the tag.
I have this php just following the closing form tag...
<?php
if (isset($_POST['Submit'])) {
$_SESSION['location'] = $_POST['location'];
}
?>
Upon submit it goes to the checkout.php page...
I have <?php echo 'Session: '.$_SESSION['location']; ?> in the body to check that the session variable is passing.
Returns the following error "Notice: Undefined index: location in /home/benspret/public_html/beta/corp/checkout.php on line 180" which is the line where the above echo statement is located.