To pass this array on to a new page, we will use a hidden form then submit the form using the POST method. We could add it a comma separated list to the URL but this method is limited to a maximum of 2,083 characters which won't always be feasible). The form POST method submits the data without using the URL and without a length limit. A hidden form field is just a string of characters. So we'll get each item value in the array, append it to the previous item with a comma between them. This gives a "comma delimited" string of characters.
<form action="OurNextPage.htm" method="POST" name="groceries"> <input id="itemlist" type="hidden" name="itemlist" /> <input onclick="sendData()" type="button" value="Deliver" /> </form>
Til next time ...