- see footer for list info -<
Hi all,

I have a shop/cart app I developed a while ago and I'm updating.

There are various steps to purchase (choose / update / checkout / buy / etc...) with forms controlling each. I originally developed it so that the form submits are handled by a single file which invokes CFC's or redirects as necessary. It does this as follows:

<cfif IsDefined("form.buy")>
   <cfinvoke ...>
<cfelseif IsDefined("form.updateCart")>
   <cfinvoke ...>
<cfelseif IsDefined("form.clearCart")>
   <cfinvoke ...>
   <cflocation...>

and so on.

This seems a bit longwinded. My question is: is there any better way of handling lots of related forms?

Thanks, Damien

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -<
- Forum provided by www.fusetalk.com -<
- DHTML Menus provided by www.APYCOM.com -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to