I have a form:
you can do it like this:
in results.php you should:
$g = isset($_GET['genres'])?$_GET['genres']:"";
$genres = explode(",",$g);
i have removed the form completely because the genres are now sent by document.location.href
. The .val()
function of jquery returns the selected values like expected (imploded by ,
)