Quick question. Is there an easy way to pass ALL form vars to a UDT?
Now I am passing {UDT name=$name ad1=$ad1 . . . var15=$var15}
Thanks Mark
Passing parms to UDT
Passing parms to UDT
Mark
Re: Passing parms to UDT
If you call your UDT like that : {UDT name=$name ad1=$ad1 . . . var15=$var15} you will be able to access all these params by using the array $params in the php script of your UDT.
E.g.
and so on.
The question is where do you get the variables $name, $ad1 etc. ?
E.g.
Code: Select all
if(isset($params['name'])) {
do something with that...
}
The question is where do you get the variables $name, $ad1 etc. ?
Re: Passing parms to UDT
I'm sorry I meant to say I was passing all my vars form FormBuilder to a UDT.
FormBuilder is calling the UDT in the Form Template after $fb_form_done == 1 and no errors.
Sorry
Mark
FormBuilder is calling the UDT in the Form Template after $fb_form_done == 1 and no errors.
Sorry

Mark
Mark