How to change values without refreshing the page

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
BaltarPHP
Forum Newbie
Posts: 10
Joined: Sun May 03, 2009 7:35 am

How to change values without refreshing the page

Post by BaltarPHP »

I have seen a webpage where user adds items to cart and the number of items on the cart (in another php file) changes simultainously without the need to refresh the page.
Another example is that when user adds item to cart - a button saying like "start paying" appears immeadetly under the cart without page refresh.

How to do that?

I must say im a beginner at this
divito
Forum Commoner
Posts: 89
Joined: Sun Feb 22, 2009 7:29 am

Re: How to change values without refreshing the page

Post by divito »

Look into Ajax.
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: How to change values without refreshing the page

Post by Mark Baker »

or javascript if you don't need to calculate anything on the server
BaltarPHP
Forum Newbie
Posts: 10
Joined: Sun May 03, 2009 7:35 am

Re: How to change values without refreshing the page

Post by BaltarPHP »

I do not know how to use javascript. Can u give me an example or good tutorial link?
Post Reply