Actually, it sounds like this would be better fixed by changing your
architecture. If you need to retain form information then stack the action
page on top of your form page. That way you can fall through and re-display
the form if validation fails, or you can insert into the db and cflocate if
the fields are ok. In fusebox it would look like this:
<cfcase value="edit">
<cfinclude template="act_updateCategory.cfm">
<cfinclude template="dsp_header.cfm">
<cfinclude template="dsp_catInfo.cfm">
<cfinclude template="dsp_footer.cfm">
</cfcase>
If you aren't fond of fusebox your form page might look like this:
<cfif isdefined("form.submit")>
<cfinclude template="act_updateCategory.cfm">
</cfif>
<!--- display form --->
<form action="[submit to self]" ....
Bryan Love Macromedia Certified Professional
Internet Application Developer / Database Analyst
Telecommunication Systems Inc.
[EMAIL PROTECTED]
"What father would hesitate to say 'if there must be trouble let it be in my
day, that my child may have peace'?"
- Thomas Paine, An American Crisis
-----Original Message-----
From: Paul Ihrig [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 8:38 AM
To: CF-Talk
Subject: submitting a form with out a button? unload
i am sure this has been done a lot but cant find it.
how can i submit a form with out using a button.
using an unload event?
i was going to use cflocation on an action page, but cant pass my
variable back to another page
thanks
-paul
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists