开发者

persistent cookies, jquery, ajax

开发者 https://www.devze.com 2023-02-21 16:01 出处:网络
$(\"input[type=checkbox]\").click(function() { $(\"form\").submit(); }); This piece of code sends values to my PHP script which implodes the values into a MySQL query.
$("input[type=checkbox]").click(function() {
     $("form").submit();
});

This piece of code sends values to my PHP script which implodes the values into a MySQL query.

My problem is, It is not keeping the checked value upon executing, which then leads to it not being able to implode values into the MySQL query

PHP..

$title = implode(',',$_GET['brand']);

MySQL...

"SELECT * 
 FROM ITEMS where brand_id in ($title)"

Do I nee开发者_Python百科d to use cookies for this?

0

精彩评论

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

关注公众号