when i click on a submit button, it sends values to php. i have made 3 checkmoxes. when i select one and then click on a button, i want that the button transfer values that i selected. here is the code.
submit.onPress = function() {
if (checkbox1.value = true) {a1 != “”; a2 != “”; a1value != “”; a2value != “”;
myData.a1value = a1value;
myData.a2value = a2value;
myData.sendAndLoad("savebar2.php", myData, "POST");
}
if (checkbox2.value = true) {a1 != “”; a2 != “”; a1value != “”; a2value != “”;
myData.a1 = a1;
myData.a2 = a2;
myData.SendAndLoad(“savebar2.php”, myData, “POST”);
}
checkbox1 = checkbox1.value;
checkbox2 = checkbox2.value;
checkbox3 = checkbox3.value;
myData = new LoadVars();
myData.onLoad = function() {
if (this.writing == “ok”) {
status.text = “Datas are in the text”;
} else {
status.text = “error”;
}}
};
UN@
[size=1][/size][size=1][/size]