Add an extra step of error checking logic in. You can use the code below as a
guideline.
<cfoutput>
<cfswitch expression = "#delete#">
<cfcase value="yes">
<cflocation
url="#script_name#?fuseaction=group_delete_query&group_id=#group_id#" addtoken="no">
</cfcase>
<cfcase value="no">
The group was not deleted.
</cfcase>
<cfdefaultcase>
<b>Are you sure you want to delete this group?</b>
<form action="#script_name#" method="post">
<input type="hidden" name="fuseaction" value="#fuseaction#">
<input type="hidden" name="group_id" value="#group_id#">
<input type="submit" name="delete" value="Yes">
<input type="submit" name="delete" value="No">
</form>
</cfdefaultcase>
</cfswitch>
</cfoutput>
<!-- end act_group_delete_confirm.cfm -->
--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------
> -----Original Message-----
> From: Jamie Symonds [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 28, 2000 8:45 AM
> To: [EMAIL PROTECTED]
> Subject: DELETE a record from...
>
>
> This is a multi-part message in MIME format.
> --------------B5EF54EEC420F317BC399DF2
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> I have an application where the "administrator" of the
> online database can go to a "view all records" page where it
> lists the name and a few other pieces of info for the folks
> with info in their database - the administrator has three
> choices - View, Update, or Delete. All three work perfectly
> - except, I would like to include a "Are you sure? Yes/No"
> prompt with the delete [DeleteFacultyInfo.cfm?username=xxx
> is what is passed]
>
> <cfquery name="delete" datasource="Academic Funding &
> Research">
> DELETE FROM Faculty
> WHERE username = '#username#'
> </cfquery>
>
>
>
> --------------B5EF54EEC420F317BC399DF2
> Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
> Content-Transfer-Encoding: 7bit
> Content-Description: Card for Symonds, James A.
> Content-Disposition: attachment; filename="vcard.vcf"
>
> begin: vcard
> fn: James A. Symonds
> n: Symonds;James A.
> org: Comp&Tech Crdntr, StFX Students' Union; Intern
> w/Prof. Blackwell; Intern w/Acdmc Fndng & Rsrch; TSG Lab Assistant
> adr: Box 780;;St. F.X.U.;Antigonish;Nova Scotia;B2G 2X1;Canada
> email;internet: [EMAIL PROTECTED]
> title: Bachelor of Info Sys, Major (student)
> x-mozilla-cpt: ;0
> x-mozilla-html: TRUE
> version: 2.1
> end: vcard
>
>
> --------------B5EF54EEC420F317BC399DF2--
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.