Just an anal reminder, in this code: <cfif #form.promo# is "beans">
The # signs are not necessary. You only need them if you outputting the value to the screen, or using it in a string, like so: <cfset name = "My name is #form.name#"> (but even that could be done as.... <cfset name = "My name is " & form.name> ) ======================================================================= Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc Email : [EMAIL PROTECTED] WWW : www.camdenfamily.com/morpheus Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Candace Cottrell [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 13, 2002 9:50 AM > To: CF-Talk > Subject: Re: help a newbie with code pleazz > > > On your action page, you can eliminate the need to press > another form button. > > <cfif IsDefined("form.register")> > <cfif #form.promo# is "beans"> > <cfquery name="InsertSubscriber"> > Insert Into TABLE Values (INSERT YOUR SQL CODE > HERE) > </cfquery> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.

