get data using link (URL varriable) then save to database
I want to click on a link '1' for 'LIKE开发者_StackOverflow中文版' and same way '0' for 'DISLIKE' will be save to db without refresh page
You'll need to research AJAX.
JQuery has a number of plugins to AJAX-ify forms, or you can use the raw JQuery ajax() call to send data back to a PHP script.
Here's a tutorial, and here's another.
You can try with ajax function
look into AJAX, you could use jQuery's post function also.
精彩评论