开发者

get data using link (URL varriable) then save to database

开发者 https://www.devze.com 2023-02-02 20:23 出处:网络
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.

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

精彩评论

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