I've got a bunch of variables being pulled from form ID's before being sent in a query string to a PHP. However, as one input is a checkbox I'm trying to get AJAX to set the variables value according to whether it's checked or not. i.e..
if (document.getElementById('bold').checked) { var bold = "true";
}
else { var bold = "false"; }
But, it doesn't actually send anything to the PHP. I'm guessing syntax a lot of the time, so if anyone can correct I'd be most grateful.