I've encountered this before as well. If there's something wrong with the
insert query, the code blows right past the error to the url template and
redirects you to the next page. The entry doesn't get entered and you get no
indication of a problem except that the database is left untouched.
You could try this to debug your code: Place your insert statement within
CFTRY and CFCATCH tags. If no error is generated, then go to the
url_showguestbook.cfm page, if not, display the CFCATCH.Message or
CFCATCH.Detail messages..
Hope it helps...
Bob Krieger
www.zyxxy.com/cf_bit
(Cold Fusion - Because It's There)
----- Original Message -----
From: "cecilia" <[EMAIL PROTECTED]>
To: "Fusebox" <[EMAIL PROTECTED]>
Sent: Wednesday, December 27, 2000 10:24 AM
Subject: cflocation happen first of my dsp form ! help
> i'm started rebuilding some applications in fusebox style,(i bought the
> book pdf version) but i've this
> strange problem, when i make an insert (act_aggiungiguest.cfm) , the
> cflocation happen first and
> the dsp_aggiungiguest.cfm (where's the form for insert) is not displayed
>
> !, clearly there'not insert in the database Basically if there's not the
> cflocation to the "url_showguestbook.cfm
> everything go well, the update or insert is ok, but there's not
> redirection to anothere page, which is the possible mistake ?
> Thanks in advance !!
> This is the simple code :
>
> <cfinclude template="../app_globals.cfm">
>
> <cfparam name="attributes.fuseaction" default="">
>
> <cfswitch expression="#attributes.fuseaction#">
>
> <CFcase value="viewguestbook">
> <cfinclude template="dsp_viewguestbook.cfm">
>
> </CFcase>
> <CFcase value="addguestbook">
>
> <cfinclude template="dsp_aggiungiguest.cfm">
> <cfinclude template="act_aggiungiguest.cfm">
> <cfinclude template="url_showguestbook.cfm">
> </CFcase>
>
> ecc.....
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists