Page 1 of 1

Question

Posted: Wed May 26, 2004 8:25 am
by doubt
i have a question here.....

my catelog.php page have products with hyperlink...addtocart and remove
when i click that addtocart link....it parse to anotherpage(cartpage.php) and display the item i selected.

but the second time i back to catelog.php page and click on other product addtocart the cartpage.php will display the recent 1......so i do refresh it will display latest 1...

so wat should i do without click on refresh on each time and the cartpage.php will display what i selected from catelog.php page?

Posted: Wed May 26, 2004 10:02 am
by kettle_drum
Have the page refresh/redirect back to the page so that the newly added item is registered on the pages.

Posted: Wed May 26, 2004 10:12 am
by doubt
any code only for refresh 1 time ?

Posted: Wed May 26, 2004 10:36 am
by doubt
http://localhost/fyp/shopping/addtocart ... roductid=2

i solve the problem with adding =SID but i have no idea how is work..

Posted: Wed May 26, 2004 10:38 am
by doubt
http://localhost/fyp/shopping/addtocart ... roductid=2

i solve the problem with adding =SID but i have no idea how is work..

Posted: Wed May 26, 2004 10:49 am
by kettle_drum
Its just passing the session id to the next page so that it uses it.