Possible Duplicate:
Reference: Why does the PHP code in my Javascript not work?
The output always bool(false)
even I already check some check boxes, I don't know what is wrong.
So far here's what I've tried
Here is my code:
<a onclick="href='wp-content/themes/twentyelevenchild/addmarked.php?asin=<?php echo serialize('+asinValues+')?>'" class="addmarkeditems fancybox.ajax">Save Test 2</a>
</form>
<div id="results"></div>
<script type="text/javascript">
var asinValues = $('input[name=checkboxlist]:checked').map(function(){
return $(this).val();
}).get();
</script>
in my addmarked.php
<?php
var_dump(unserialize($_GET['asin']));
?>
Screenshot of my firebug: