-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey Greg,

Pretty simple unless I'm misunderstanding your question.

On the message page:

<form action="yourloginactionpage.cfm" method="post">
        <input type="hidden" name="returnurl"
value="#cgi.script_name#?#cgi.querystring#">

<input type="text" name="username">
<input type="text" name="password">

</form>


On the action page:

<cfif username & password are good...
        <cflocation url="#form.returnurl#">
</cfif>

Aaron Johnson, MCSE, MCP+I
Allaire Certified ColdFusion Developer
MINDSEYE, Inc.
<phn>617.350.0339
<fax>617.350.8884
<icq>66172567
[EMAIL PROTECTED]

___________________________________________
"Never forget that only dead fish swim with 
the stream." -- Malcolm Muggeridge
___________________________________________



- -----Original Message-----
From: Greg Wolfinger [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 11:21 AM
To: CF-Talk
Subject: creating an url return string


Hey Guys:

I have an application that lets you browse a message board, however
if you would like to post a response you need to log-in (in you arn't
already).  After you log-in, it takes a parameter passed through the
url called returnURL and sends the user after the authentication to
that url.  The problem is that the returnURL has multiple parameters
to it sometimes (e.g.
returnURL=/message/index.cfm?action=submit-response&message_id=foo&ref
URL=/foo/index.cfm)

How can I return the user to that page keeping in tact all of the URL
parameters?

thanx,

greg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to