Thank you but that didn't work. I still have to refresh the page.
-----Original Message-----
From: Stuart Dallas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:53 PM
To: Phillip Perry
Cc: Tim Ward; Martin Towell; Tom Rogers; Php
Subject: Re[2]: [PHP] beginner in PHP
On Thursday, June 13, 2002 at 7:44:39 PM, you wrote:
> Yes, here is the checkout code I used...
> function chout(){
> session_destroy();
> unset ($mycart);
> unset ($cart_items);
> echo "<p>Thank you for shopping!</p>";
> }
> Any suggestions?
Try this...
function chout(){
global $mycart, $cart_items;
session_destroy();
unset ($mycart);
unset ($cart_items);
echo "<p>Thank you for shopping!</p>";
}
And if it works, read this:
http://www.php.net/manual/en/language.variables.scope.php
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php