PDA

View Full Version : logic question



swissbeets
07-13-2008, 10:44 AM
I just built a whole shopping cart using a database, and basically post. but i save the cart_id, which is individual for the user in a session. but this means anytime someone is running zone alarm theyneed to disable it to even use the cart i want to also save the cart id in the URL

so if i save the session as $_session['cart']

and then want to put the [cart][cart_id] in the URL if it is set?

will there be any problems?

the code will look something like this?

[php]

if (isset($_session['cart'][carti_id]))
{
thsi is where i am having a problem, i want it to only be put in the URL if it is a product is clicked, would i have to put this in the form that is displaying all of my products?