You need to be more specific. What language do you want to use? PHP, ASP, Javascript, etc.
Server side languages like PHP and ASP may not be the best because they will reload the page.
Javascript will allow you to make changes without reloading the page, which might be what you are looking for...