4
I’m sending by GET
one array in Javascript to another page through a button
calling the function. The problem is that sending is in string and not in array. I want to pass this array for 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 go back to a table in Lua, because it inserts the three values in each position.
What library for web manipulation are you using? IE, how is this coming
GET
?– Maniero
Comes through the address bar, I can see the values passed in parameter.
– akm
But this
GET
does not appear out of nowhere in Lua, needs some library, which one is using?– Maniero