Mike,
Try using #cgi.http_referrer# to determine where the user came from.
Mark
-----Original Message-----
From: Mike Kear [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 26, 2001 11:03 PM
To: CF-Talk
Subject: Custom tag form calling itself .. how?
I have a login form that's being called as a custom tag and I'm not sure
how
I get the form to loop back on itself until the user gives a valid
username/password. The reason for calling it as a custom tag is that it
could be called from a variety of places. I can't use CFModule because
I
can't set up a mapping to a directory and I can't place any custom tags
into
the CF custom tags directory. I don't own the server and the system
admin
of the hosting company is unco-operative about letting me do just about
anything I try. (yes, it's the same issue still Kym)
How do I put the action parameter of the form, given that it could be
called
from almost anywhere on the site?
Here's the layout of the application:
Application.cfm - > logged in? .. if no .. -- > <cf__um_login> ...
if
yes, pass on to the page called.
I am having _um_login.cfm check the datasource for a valid username and
if
so, make up a struct with all the user's details. If not, send them the
form again with the error message "Not a valid username/password" and a
link to a register page and a "forgot your password?" page.
With just about any other form, I'd know for sure the page the form is
called from, so I can put it in the action attribute of the form tag.
In
this case, a user is going to be presented with the login form if its
called
from a variety of pages and the user isn't already logged in. So I
don't
know the name of the page calling the login tag.
What do I do now?
Cheers,
Mike Kear
Windsor, NSW, Australia
AFP WebWorks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists