After reading Massimo posts for awhile I have decided to forgo asp and
try out cfm
So please forgive my stupidness sometimes as I'm trying to learn all the
angles.. Very quickly
I need some help with a script to do the following:
I will be sending out a special promotion code to my friends to pass on
to there friend entitling them to a years free membership to a site.
So how I have it when they register there is a drop down menu with a
bunch of static codes and the correct code is among them. Now my
"friends" will have the promotion code so they simply choose the correct
code. And the general public, well I guess if they guess the correct one
then they get in for free! lol
Ok, anyway
What I'd like it to do is if they enter the correct code is that it will
enter an access level of lets say "friend" into the db and if they don't
enter the correct one it will enter "member"
Obviously I don't want to do this with the values of the drop down as
anyone could look at the code and see it.
BTW~ new at cfm from asp
what I was thinking is to post the data to the next page and use the
IsDefined tags to show one of either 2 forms depending on if the entered
the correct code. Say the correct code is "beans"
how would I write that in cfm?
<cfif IsDefined("form.register")>
<cfif #form.promo# is "beans">
<cfoutput> you have a free years membership!</cfoutput>
<!--- then have them click a form button to enter the free code into the
db---->
<cfform> blah blah blah</cfform>
</cfif>
</cfif>
<cfelse>
<cfif NOT IsDefined("form.register")>
<cfif #form.promo# is "">
<cfoutput> Thank you for joining, click here to continue </cfoutput>
<!---------- then have them click a form button to enter the MEMBER code
into the db---->
<cfform> blah blah blah </cfform>
I have no idea lol, pleazzzzzzzzzzzzzzzzzzzzzzzzz help me or shoot me:)
thanks!
dave
Dave Lyons
[EMAIL PROTECTED]
www.DreamLofts.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Get the mailserver that powers this list at http://www.coolfusion.com