Are you getting an error?
You don't actually say what the problem is.
Most people, when they put the action page and form page together use
a hidden form value to know when to process


<cfparam name="form.process" default="0" />

<cfif form.process eq 0>

<form name=...
<input type="hidden" name="process" value="1" />



<cfelse>
<!--- form.process is 1 --->

do your delete stuff here



</cfif>


Also as many other people have pointed out, you're DB design.. sucks.
It needs to be normalized.  And do yourself a favor, use
<cfqueryparam>s
If this is going to interface with the web at all, and not just
something local you're going to be in trouble if someone who wants to
do damage to your DB.






On Thu, Feb 21, 2008 at 6:38 AM, erik tom <[EMAIL PROTECTED]> wrote:
> >Don't you think it might be better to do at the top of the page the
> >check for the item to delete then delete the item?
> >
> >Rather than at the bottom of the page?
> >
> >Here is how I see your logic
> >
> >1) retrieve data
> >2) Display data
> >3) check for data to be deleted
> >
> >Can you spot it now?
> >
> >
> >
>
> If I delete the record from the top it will delete from averywhere , and I 
> only want t delete for this particular item
> >>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299581
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to