You could also do an announce event for the handler so after it is submitted it brings up another view. Since you define what is displayed, just include an announce event or have it redirect to another handler.
or Make the event variable as a hidden field instead of a url parameter. On Thu, Jul 29, 2010 at 8:31 AM, wblakemd <[email protected]> wrote: > Hello all, > I have a simple question, or at least I hope it is simple. Let > me explain what I am doing before I ask the question. I have a form > that asks the user some questions, and those questions are submitted > into the database. This is done by the form action calling an event > that enters the data into the DB. Something like: > > <form action="index.cfm?event=submit"> > > This works fine. The event calls a listener which processes the data > and after that completes the user is returned to the form with a > message which lets them know it was submitted correctly. Again, all of > this works fine. However, there is a slight problem. The url still > has the "event=submit" in the address bar. If the user were to go up > to the address bar and hit enter, it would throw an error (which is > actually more desirable over them submitting their data again, or a > bank form). > > So here is the question. How do I remove the event information from > the url? I have thought about trying to pass the event information > from a hidden field in the form, but that just seems somehow wrong. I > am very new to M2, so maybe I am doing this wrong from the get-go. > Any thoughts, suggestions are greatly appreciated. > > -- > 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 > > ***New URLs as of April 29th, 2010*** > SVN: http://svn.mach-ii.com/machii/ > Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/ > -- Dave Tran Co-Owner / Founder MONUMENT SNOWBOARDS [image: http://www.monumentsnowboards.com]<http://www.monumentsnowboards.com/> Official Phone: 202.630.SNOW | 202.498.5333 Fax: 888.238.8340 Skype: MNMNT_DC Email: [email protected] <http://www.twitter.com/mnmntsnowboards><http://www.facebook.com/monumentsnowboards> -- 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 ***New URLs as of April 29th, 2010*** SVN: http://svn.mach-ii.com/machii/ Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
