I generally use something like this for the action page of update and add:
<cfif id IS NOT "">
<cfupdate datasource="dsmain" tablename="links" dbtype="ODBC">
<cfelse>
<cfinsert datasource="dsmain" tablename="links" dbtype="ODBC">
</cfif>
Sincerely,
Shane Witbeck
Webmaster
mailto:[EMAIL PROTECTED]
www.digitalsanctum.com
-----Original Message-----
From: Jay Jennings [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 06, 2000 1:16 AM
To: [EMAIL PROTECTED]
Subject: Logic Problem
I have a simple fused app that allows me to add a record to a database. It
works fine, but after adding a record I can hit the browser's reload button
and another record is added -- as many times as I hit the Reload button.
Which kind of makes sense since the fuseaction is set for adding a record,
etc.
I obviously have some flawed logic, but after looking at everything multiple
times I'm kind of confused. Any hints as to what I should be looking for
would be _greatly_ appreciated.
jay
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.