creating a shopping cart.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux