i want to do form and when it will be submit i do not want to refresh page like on this forum when somebody posts with quick reply. please help me thanks
It's more JavaScript related. You need AJAX to achieve this. http://www.w3schools.com/ajax/default.asp
There is no one size fits all code, if you dont know javascript you will have to learn that, after that you have to learn about ajax.
go for prototype framwork , this will serve you in a simpler manner ... point that script to your head section and onclick of button with two lines of code get back the response from the server display it to user simple ,,, talking about Ajax.Updater function in prototype .. have a look at this