I'm going to finally turn off auto variables.
Woo-hoo!
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.
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
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/