hi,
what you can do, test if the value you get is an array, than work it out as an array:
foreach($HTTP_POST_VARS as $key=>$val)
{
if(is_array($val))
{
for($i=0;$i<count($val);$i++)
{
echo $val[$i];
}
}
}
I am not sure if that answers your question. Hope this help.
But like p. reagan, I am stuck with Javascript recognizing the array of input box🙁
David
Ryan wrote:
I have a form that has an array of input boxes (text boxes, drop down menus). For example $field_name[] has 5 values. The problem is, is that when the form passes them using post all variables are put in an array called HTTP_POST_VARS. I am then stuck with an array of arrays. After looking over the list and each functions I still can't figure out how to get the arrays intact out of the HTTP_POST_VARS. If I could somehow take the 3 arrays out of the HTTP_POST_VARS array then I could do what I'm trying to do. I would then have a $field_name array, a $field_type array, and a $field_length array. However, these arrays are all inside of HTTP_POST_VARS array. If there is a way to access the value of an array that is inside of an array using a for loop or otherwise that would help too. Please any help you might have would be much appreciated.
-Ryan