>> I have a number of places where I want to process either form or query
>> parameters identically. Auto variables were very convenient for this.
>> 
>> What's the optimal way to do this without auto variables?
> 
> The _optimal_ way is to use fusebox, this is done for you.

On my to do list.  :-)

> Otherwise just emulate what fusebox does:
> 
>    if (request info{"*request method"} = "POST")
>       $attributes := merge collections(query params; form
> variables) // POST overwrites GET
>    else
>       $attributes := merge collections(form variables; query
> params) // GET overwrites POST
>    end if

Very nice, thanks.

Will



_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to