This content has been marked as final.
Show 3 replies
-
1. Re: Page Redirecting
Dan Bracuk Jul 21, 2008 9:32 AM (in response to kodemonki)When I get unexpected results with if/else logic, I troubleshoot it like this:
<cfif x is 1>
true <br />
<cfdump var = "#x#">
<cfabort>
<cfelse>
false
<cfdump var = "#x#">
<cfabort>
</cfif> -
2. Re: Page Redirecting
kodemonki Jul 21, 2008 9:39 AM (in response to kodemonki)Bad news, I changed ALL of the code I posted to:
<cfif selectProgram EQ 3>
SDS
<cfelseif selectProgram EQ 42>
1tlb
<cfelse>
dgim
</cfif>
And I still get the same response. I'm pretty sure the code is actually updating on the server because when testing (the originally posted code) I changed the user_id from #session.user_id# to 6666666 and it showed up correctly in the database. -
3. Re: Page Redirecting
kodemonki Jul 21, 2008 10:35 AM (in response to kodemonki)I had to change
<cfif find(selectProgram,program_list)>
<cflocation url="dgim/enroll_dgim.cfm?selectProgram=#selectProgram#&enrollment=#enrollment#&selectDea ler=#selectDealer#&signer=#replace(signer,' ','_','ALL')#">
</cfif>
to
<cfloop query="dgim_program">
<cfif selectProgram EQ id>
<cflocation url="dgim/enroll_dgim.cfm?selectProgram=#selectProgram#&enrollment=#enrollment#&selectDea ler=#selectDealer#&signer=#replace(signer,' ','_','ALL')#">
<cfbreak>
</cfif>
</cfloop>
because it was checking for '3' in a list, not 3.

