Page 1 of 1
Passing parms to UDT
Posted: Wed Nov 12, 2008 2:39 pm
by dmgd
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
Re: Passing parms to UDT
Posted: Wed Nov 12, 2008 7:12 pm
by NaN
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.
Code: Select all
if(isset($params['name'])) {
do something with that...
}
and so on.
The question is where do you get the variables $name, $ad1 etc. ?
Re: Passing parms to UDT
Posted: Wed Nov 12, 2008 8:21 pm
by dmgd
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