开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜