Is there a built in php function that will return an array (or some sort of list) of all the form elements within a div or within a specific form by either name or id?
My limited experience in javascript tells me that this can probably be occomplished with javascript but i am wondering if it can be done in php. Thanks for your help.
My only other alternative would be to define a variable at the bottom of each form element like:
$allElements = 'name';
$allElements .= ', phone';
$allElements .= ', email';
and so on.
I am wondering if there is a short cut to this method?