Welcome Guest, Not a member yet? Register   Sign In
Getting value from a javascript variable into a php variable???
#2

[eluser]Roy MJ[/eluser]
var strValues = "";
var boxLength = document.choiceForm.destination.length;
var count = 0;
if (boxLength != 0) {
for (i = 0; i < boxLength; i++) {
if (count == 0) {
strValues = document.choiceForm.destination.options[i].value;
}
else {
strValues = strValues + "," + document.choiceForm.destination.options[i].value;
[removed](strValues);
}
count++;
}
}
alert("Here are the values you've selected:\r\n" + strValues);


Messages In This Thread
Getting value from a javascript variable into a php variable??? - by El Forum - 01-10-2011, 11:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB