I am replying to a very old post of mine, and I am seeking assistance with the process Jason outlined above. I am attempting to following the steps outlined above and so far I have created a userLevel for my guest account and inserted in my user database an email address (UserEmail) and a simple password (UserPassword). I also inserted the guest level user (10) under my "All Users" Group Rules using SecurityAssist to ensure that the checkout.php page recognized the guest as a valid userLevel.
I then proceeded to insert the form action on my user_LogIn.php page to pass the guest session over to the checkout page. Here is what I came up with:
<form name="LogIn" method="post" action="<?php echo ($_SERVER["PHP_SELF (isset($_SERVER["QUERY_STRING"])?"?".htmlentities($_SERVER["QUERY_STRING"]):""));?>">
<input name="UserEmail" type="hidden" value="email@example.com">
<input name="UserPassword" type="hidden" value="guest101">
<a href="checkout.php" onClick="LogIn.submit();" class="button4">shop as guest</a>
I am using the above code so the "shop as guest" button could post the guest login variables over to the checkout.php page. However, I am running into problems, as the method I am using above is not working. I should also note that my checkout.php page has a SA access restriction which returns the individual back to the Login Page if they are not already signed in. I used WebAssist's tutorial in creating the access restriction using a URL variable where users_LogIn.php?checkout=1.
I have attached a copy of my login page so you can see what I have done so far. Thank you.