Hi there,
I was wondering if there is a simple method to retrieve the form fields from the $form array. More to the point make the fields of a specific form(by id) available to a function so I can loop through a foreach and populate the field with a presubmitted preview of the form content.
basically
function previewform() { //grab the form fields global $form; //parse field entries from serialized form entries parse_str($_SERVER['QUERY_STRING']); foreach($entries as $entry) { //loop through getting label for each entry from $form and showing entry next to it from the querystring'. } die(); }
I know this is crude but I hope it helps get across what I'm trying to do.
Thanks in advance for the help guys!