We have a login panel that allows entry to our system. I updated the panel with two radio buttons(Production/Test). What I am trying to do is set my datasource to what was selected. The datasource is originally set in my application.cfm module...
<cfset #ODBC_DataSource# = "envrion">
In my login module, I would like to change this based on
the radio selection.
Example...
<cfif isDefined('theDatabase')>
<cfif #theDatabase# IS "Test">
<cfset #ODBC_DataSource# = "test">
<cfelse>
<cfset #ODBC_DataSource# = "environ">
</cfif>
</cfif>
I now I am going into the code, but am not pointing to the test environment.
Any ideas??
Thanks,
Mike
<cfset #ODBC_DataSource# = "envrion">
In my login module, I would like to change this based on
the radio selection.
Example...
<cfif isDefined('theDatabase')>
<cfif #theDatabase# IS "Test">
<cfset #ODBC_DataSource# = "test">
<cfelse>
<cfset #ODBC_DataSource# = "environ">
</cfif>
</cfif>
I now I am going into the code, but am not pointing to the test environment.
Any ideas??
Thanks,
Mike