You need to use ajax to do that. Ajax will send the request to a PHP script that will do the work without refreshing the entire page.
cereal
Veteran Poster
1,146 posts since Aug 2007
Reputation Points: 344
Solved Threads: 223
Skill Endorsements: 22
You can do this...Just click here to download the script....
More information for this is available in the following thread...Click here
IIM
Practically a Master Poster
638 posts since Jun 2011
Reputation Points: 127
Solved Threads: 136
Skill Endorsements: 7