[support] Simple Module Coding Question

Fred Jones fredthejonester at gmail.com
Wed Jul 30 19:43:08 UTC 2008


> To be extraclear
>
> function my_form($form_values) {
>  $mystuff=(int)arg(1)*(int)arg(2);
> }
>
> is much less flexible than
>
> function my_form($a, $b, $form_values) {
>  $mystuff=$a*$b;
> }
>
> and you could even wrap input validation elsewhere.

Ah, now I see. Yes, you are quite right--good point.

Thanks.


More information about the support mailing list