View Single Post
Old 02-20-2013, 02:34 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,365
Thanks: 18
Thanked 348 Times in 347 Posts
sunfighter is on a distinguished road
Without looking at your code, this is how I send an array in a form using the hidden input tag.

Turn the array into a string using join():
BigString = MyArray.join(); <= this is javascript

Put that in the hidden field.
To get an array back in the php use the explode:

$MyArray = explode(",", $string); <= This is php
sunfighter is offline   Reply With Quote