Do something like this:
error checking page.
<CFSET ERRORMESSAGE="You must enter a valid password and user name to
enter this site">
<CFLOCATION URL="login.cfm?strErrorMsg#Variables.ERRORMESSAGE#">
</CFIF>
<CFELSE>
<!---login failed - send them back to the login page--->
<CFSET ERRORMESSAGE="You must enter a valid password and user name to
enter this site">
<CFLOCATION URL="login.cfm?strErrorMsg#Variables.ERRORMESSAGE#">
</CFIF>
Then on login page.
<cfif isDefined("URL.strErrorMsg")>
<script>
<cfoutput> alert(#URL.strErrorMsg#); </cfoutput>
</script>
</cfif>
That should do the trick !
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists