I have 2 pages.
berechnungseingabe.php
where I generate a Multidimensional Javascript Array
Array[19]
3: Array[0]
7: Array[0]
11: Array[0]
Anzahl: "1"
Driving: 2380
Index: "13"
Latitude: 48.0078390267396
Longitude: 16.224982738494873
Walking: 1647
13: Array[0]
14: Array[0]
...
x: Array[0]
when i chlick on the Button
<button class="ui-btn ui-corner-all ui-btn-icon-left ui-shadow ui-icon-action" onclick="berechnenDerWege()">Berechnen</button>
I want to send the array to the
berechnungsergebniss.php
that I can use it as php array on this page.
Is there a way with jQuery, JavaScript,PHP?
JSON.stringify(array);
does not work because I get:
[[],null,[],null,null,null,null,null,null,null,null,null,null,null,[]]
as result.