on a side-note to this, has anyone ever had problems where a url parameter seems to get interpreted as a html character entity? e.g. you've got a page with a parameter called Product, the url might be page.cfm?action=jump&product=123. then an error appears in application.log, which indicates "&prod" has been turned into whatever that's meant to be, in the same way as & or £ might get turned into & and �. And the CGI.Query_String looks like page.cfm?action=jump.uct=123, where the . is actually some odd character that doesn't get printed properly in the application.log, but is obviously the 'special character' it represents. So the page chokes as all it's got is URL.jump[specialchar]uct, instead of URL.jump and URL.product. Oddly I think this happens even though the page would have <cfparam> checking for them both.
I've never been able to duplicate this error, and it happens very rarely. I assumed it was because of having things like <a href ="page.cfm?action=jump&product=123"> which of course should be written as <a href="page.cfm?action=jump&product=123">, as any fule kno. However, on a recent site I had already changed all the url's to the correct versions, with the exception of some javascript document.location.href = "blah" stuff, where I figured it didn't make sense to turn & into &. Still got this error on that site, once, don't know why. Not sure if it's just &prod, but I think it could happen with others too. it's not a big problem as it so rarely happens, but it would be nice to know i could do something simple to prevent it ever happening in the first place. Duncan Cumming IT Manager http://www.alienationdesign.co.uk mailto:[EMAIL PROTECTED] Tel: 0141 575 9700 Fax: 0141 575 9600 Creative solutions in a technical world ---------------------------------------------------------------------- Get your domain names online from: http://www.alienationdomains.co.uk Reseller options available! ---------------------------------------------------------------------- ---------------------------------------------------------------------- "Aidan Whitehall" <[EMAIL PROTECTED] To: <[EMAIL PROTECTED]> nks.co.uk> cc: Subject: RE: [ cf-dev ] Page Parameters 08/07/2003 10:30 Please respond to dev > erm, use the URL scope/structure or the CGI vars Just to clarify, if your URL looks like this: index.cfm?page=this&somvar=that in the code in index.cfm, you can refer to #url.page# and #url.somevar# Alternatively, you can output the entire querystring using #cgi.query_string# You put a question mark after the template name and then ampersands between variable-value pairs, btw -- Aidan Whitehall <mailto:[EMAIL PROTECTED]> Macromedia ColdFusion Developer Fairbanks Environmental Ltd +44 (0)1695 51775 Queen's Awards Winner 2003 <http://www.fairbanks.co.uk/go/awards> ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
