jarthel wrote:
> I guess I asked since it's quite common for forms to be submitted to
> itself.
>   

Ugh. I hope that's not common. :-) Seriously though, in my opinion 
that's bad practice even outside of Mach-II. You're turning the form 
into its own controller which makes things messy.

> like perhaps a login form whose action is itself. if not "posted",
> just display the form. if "posted", validate the username/password.
>
> Maybe this isn't the mach-ii way?
>   

No, you should be posting your form to a Mach-II event.

<form name="myForm" action="index.cfm?event=processMyForm">

Or you can use #BuildUrl("processMyForm")# of course. Just spelling it 
out explicitly to illustrate how it works.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to