[eluser]crumpet[/eluser]
What about if in the function which returns the forms array I added another set of values called "html". And in there i put the html for each of the fields. Then i could do something like
Code:
foreach($fields AS $field){
//may need an isset conditional here
echo $field['html']
}
Can you anticipate any problems?
EDIT:
Nevermind i just realized this is almost identical to the first thing you proposed. My problem is a little more complex than simply needing to hide some fields. If the form is called from a certain page some of the data can be assumed. So i want to hide hte place where hte user would enter that and put it into a hidden field instead...
Suggestions??