here is the code from the page before the https: chekcout page:
href=\"$s_homeurl/ckout.php?sess_id=".$COOKIE["PHPSESSID"]."&test=test\">CheckOut</a></B>\n";
print $SESSION['userid'];
print $_SESSION['mycart'];
print "<BR>
<form method=\"post\" action=\"$s_homeurl/ckout.php\" name=\"addtocart\">
<input type=\"hidden\" name=\"sess_id\" value=\"".$_COOKIE["PHPSESSID"]."\">
<input type=\"image\" border=\"0\" name=\"submit\" src=\"images/button_06.gif\" width=\"98\" height=\"27\" alt=\"Add to Cart\">
</form>";
////I have both forms Get link and Post form with an if statement on the checckout page. (just for testing)
and here is the code from the https: checkout page.
$please = session_id($_GET['sess_id']); //where this is the ID of
session_start();
if ($test == "test")
{
$SESSION = unserialize($please);
} else {
$SESSION = unserialize($please);
}
############################
$mycart = $please['mycart'];
- now if i use the $mycart = $_SESSION['mycart'];..... i get an error:
Warning: Variable passed to reset() is not an array or object in /home/lpgcreat/public_html/st_library.php on line 615
BUT,
- if i use $mycart = $please['mycart']; ... iget an error
Warning: Variable passed to reset() is not an array or object in /home/lpgcreat/public_html/st_library.php on line 615
Warning: Variable passed to each() is not an array or object in /home/lpgcreat/public_html/st_library.php on line 625
sure there are now two errors, but at least the tabel draws in the function draws out this time (unlike when i use the $SESSION["mycart"]😉
i am not really sure now if i am getting closer. my email address is maxarbos ATATATAT yahoo DOTDOTDOT com . if you email me, i will send you the links to the site and you can see what it is doing.
THANK YOU!