Hello,
I recently bought a text on php scripting, and was trying to write
basic shopping example to explore the langauage. I would like to
achieve a site which allowed the user click one or two buttons. And we
kept a count of number of hits. My thought was to use the $_SESSION
tool to store the number of clicks, and when the user clicked the grey
submit buttton. The $_Session values would be passed to the another
php script.
$_SESSION["item1"] = 0;
$_SESSION["item2"] = 0;
My book does not include such an example, and I would much appreicate
if anyone could proivde a example similar to what I hoping to achieve.
Or just some written guidance how I could achieve this example.
Thank you
I recently bought a text on php scripting, and was trying to write
basic shopping example to explore the langauage. I would like to
achieve a site which allowed the user click one or two buttons. And we
kept a count of number of hits. My thought was to use the $_SESSION
tool to store the number of clicks, and when the user clicked the grey
submit buttton. The $_Session values would be passed to the another
php script.
$_SESSION["item1"] = 0;
$_SESSION["item2"] = 0;
My book does not include such an example, and I would much appreicate
if anyone could proivde a example similar to what I hoping to achieve.
Or just some written guidance how I could achieve this example.
Thank you
Comment