Populate Checkout with logged in users details
Hi, stuck again
I have added a online order only system to a web site. I have created the cart, the shopping cart display, the checkout and confirm pages.
I use security assist to have users log in and out.
I want to populate the checkout page with the users login details.
First Name I have added first name session variable and use <?php echo $_SESSION['firstname']; ?> and it displays the user first name.
For last name I tried to do the same thing and I get "<br /> <b>Notice</b>: Undefined index: lastname in <b>/Applications/MAMP/htdocs/checkout.php</b> on line <b>95</b><br />" displayed in the Last name field.
I have set up a recordset for users and have added <?php echo $row_rsUsers['email']; ?> for the email. I get an email address that is the first on the user list, not the logged in user.
How Can I get this to work, I know I'm more than likely staring it in the face but I cant get it to work. It works ok on my other web site but that is a shop, not just an order system.
Thanks for you patience