OK here's my code

<!--- Basic security check --->

<cfif not isdefined("session.user_id") or session.user_id is "">
<cfset attributes.returnto =
"http://#CGI.SERVER_NAME##CGI.PATH_INFO#?#CGI.QUERY_STRING#";>
<cflocation
url="index.cfm?fuseaction=login.start&returnto=#attributes.returnto#"
addtoken="No">
</cfif>


then in the login page I have a hidden field to store the returnto=

<input type="hidden" name="returnto" value="#attributes.returnto#">


Here's what happens.

A user not logged in goes to:
http://localhost/projects/index.cfm?fuseaction=discussions.view&message_id=6
6

then gets redirected to
http://localhost/projects/index.cfm?fuseaction=login.start&returnto=http://l
ocalhost/projects/index.cfm?fuseaction=discussions.view&message_id=66


which is OK so far, but when I look in the hidded field value on the login
page I only see

<input type="hidden" name="returnto"
value="http://localhost/projects/index.cfm?fuseaction=discussions.view";>


Where did the &message_id=66 go? How come it did not make it to the hidden
field?

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to