Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
doubt
Forum Newbie
Posts: 8
Joined: Tue May 25, 2004 12:44 pm

Question

Post 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?
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Have the page refresh/redirect back to the page so that the newly added item is registered on the pages.
doubt
Forum Newbie
Posts: 8
Joined: Tue May 25, 2004 12:44 pm

Post by doubt »

any code only for refresh 1 time ?
doubt
Forum Newbie
Posts: 8
Joined: Tue May 25, 2004 12:44 pm

Post by doubt »

http://localhost/fyp/shopping/addtocart ... roductid=2

i solve the problem with adding =SID but i have no idea how is work..
doubt
Forum Newbie
Posts: 8
Joined: Tue May 25, 2004 12:44 pm

Post by doubt »

http://localhost/fyp/shopping/addtocart ... roductid=2

i solve the problem with adding =SID but i have no idea how is work..
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Its just passing the session id to the next page so that it uses it.
Post Reply