questor
08-23-2007, 04:23 PM
x is a string variable that I can alert to myself and I know it's good. But for some reason window.location omits it. What am I not seeing?
function addProduct() {
var x = '?selection=<? echo $_GET['selection']; ?>&products=';
var frm = document.checkForm;
// Loop through all elements
for (i=1; i<frm.length; i++) {
if (frm.elements[i].checked == true) {
x += frm.elements[i].value + ',';
}
}
window.location='addItem.php'+x;
}
function addProduct() {
var x = '?selection=<? echo $_GET['selection']; ?>&products=';
var frm = document.checkForm;
// Loop through all elements
for (i=1; i<frm.length; i++) {
if (frm.elements[i].checked == true) {
x += frm.elements[i].value + ',';
}
}
window.location='addItem.php'+x;
}