By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,460 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

Got one problem solved

P: 3
For the error I had posted I realised that I had not declare $_SESSION as an an array so I had to declare it as follows and that did it

$_SESSION['cart'] = array();

but now the checkout.php is still not reading the if statement to display checkout form from the output_fns.php script. I guess there is something wrong with the following lines of code:

if($cart&&array_count_values($cart))
{
writeShoppingCart($cart,false,0);
display_checkout_form($HTTP_POST_VARS);
}

Your help is greatly appreciated
May 7 '07 #1
Share this Question
Share on Google+
1 Reply


Purple
Expert 100+
P: 404
For the error I had posted I realised that I had not declare $_SESSION as an an array so I had to declare it as follows and that did it

$_SESSION['cart'] = array();

but now the checkout.php is still not reading the if statement to display checkout form from the output_fns.php script. I guess there is something wrong with the following lines of code:

if($cart&&array_count_values($cart))
{
writeShoppingCart($cart,false,0);
display_checkout_form($HTTP_POST_VARS);
}

Your help is greatly appreciated
Hi Jecha,

I think I need a little more detail to help - what is (or isn't happening ?)
May 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.