开发者

persistent cookies, jquery, ajax

$("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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜