creating a shopping cart.

From: Date: Sat, 01 Oct 2005 06:15:38 +0000
Subject: creating a shopping cart.
Groups: php.general 
Request: Send a blank email to php-general+get-223483@lists.php.net to get a copy of this message
What's the best approach to create a shopping cart.? Cookies? Submit buttons passing _post values? Or create session values? I have a bit of code to get that started. It won,t be a complicated site: http://testesp.flsh.usherbrooke.ca/db/index.php - want to allow visitors check off the titles they want to store and then have a check out where I'll header it all into a txt file. session_name("ESLpostcard"); session_start(); session_register("yourname");
if (isset($HTTP_POST_VARS["yourname"]))         $yourname =         $HTTP_POST_VARS["yourname"];
-- John Taylor-Johnston ----------------------------------------------------------------------------- "If it's not Open Source, it's Murphy's Law." ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - 819-569-2064 °v° Bibliography of Comparative Studies in Canadian, Québec and Foreign Literatures /(_)\ Université de Sherbrooke ^ ^ http://compcanlit.ca/ T: 819.569.2064

« previous php.general (#223483) next »