If you don't want the page refreshed then
you should look into Ajax to perform the submission behind the scenes without the need for a refresh. If the page refresh is necessary, then your server-side templating engine (
JSP? php?) needs to handle adding the additional info.