I'd just urlencode the return url, if I'm understanding the problem
correctly.
Peter Janett
New Media One Web Services
================================
WEB HOSTING FOR WEB DEVELOPERS
================================
-> Sun, IRIX, NT, Linux <-
PHP, MySQL, Perl, Cold Fusion,
MS SQL, ASP, SSI, SSL
http://www.newmediaone.net
[EMAIL PROTECTED]
(303)828-9882
----- Original Message -----
From: Philip Arnold - ASP <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2000 9:56 AM
Subject: RE: creating an url return string
> > 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
> &refURL=/foo/index.cfm)
> >
> > How can I return the user to that page keeping in tact all of the
> > URL parameters?
>
> I think the others have slightly misunderstood the problem - it's not that
> the "returnURL" can contain ? and &, which confuses CF
>
> What I'd do is use other characters, and then replace them before you use
> the URL, e.g.
>
returnURL=/message/index.cfm{action=submit-response}message_id=foo}refURL=/f
> oo/index.cfm
>
> I've used { instead of ? and } insead of & - this should then be replaced;
> returnURL=Replace(Replace(returnURL,"{","?","all"),"}","&","all")
>
> That should help
>
> Philip Arnold
> Director
> Certified ColdFusion Developer
> ASP Multimedia Limited
> T: +44 (0)20 8680 1133
>
> "Websites for the real world"
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> **********************************************************************
>
>
> > -----Original Message-----
> > From: Greg Wolfinger [mailto:[EMAIL PROTECTED]]
> > Sent: 18 December 2000 16:21
> > To: CF-Talk
> > Subject: creating an url return string
> >
> >
> > Hey Guys:
> >
> >
> > 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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists