I am sending% of a array in JavaScript to another page via a GET
by calling the function. The problem is that sending is in string and not in array . I want to pass this array to the Lua language. This array contains values. Example:
JavaScript code:
var position_x = new Array();
position_x = [50,80,110];
function btn_onclick() {
window.location.href = "page.htm?positionX="+position_x;
}
<input type=button value=pass onclick="return btn_onclick()" />
On page 2:
tabela={}
for i=1, 3 do
tabela[i] = GET["positionX"]
end
I want to return by a table in Lua, because it inserts the three values in each position.