is there an array or anything that collects all the elements submitted by a form? the idea i’m thinking of is, although maybe unpractical, that an array or something that each index would be the order of the item on the form
@ixxalnxxiauthorMar 17.2008 — #in order to use those, you must know the name for each item in the form. what i'm looking for is an array that builds of the forms so that i can just do [code=php]echo $array[0]; [/code] which would point to the first item in the submitted form without have to know it's field name
@NogDogMar 17.2008 — #I don't know why that matters. If you want to loop through the $_POST array, just use a foreach() loop. If you want a list of the field names, do [b]$names = array_keys($_POST);[/b]. If you really, really feel you just [i]have[/i] have to work with an enumerated array for some odd reason, then [b]$formValues = array_values($_POST);[/b].