Try wrapping URLEncodedFormat() around the variable when you embed it in the
URL

EXAMPLE

<a
href="GoToCategory.cfm?category=#URLEncodedFormat(Category)#">#Category#</a>

OUTPUT

<a
href="GoToCategory.cfm?category=%3Cb%3EDiamonds%3C%2Fb%3E"><b>Diamonds</b></
a>

HTH!

+--------------------------+---------------------------+
| SCOTT VAN VLIET          | SBC SERVICES, INC.        |
| Senior Analyst           | ITO Enterprise Tools      |
| Tel: 858.886.3878        | 7337 Trade St. Room 4000  |
| Pgr: 858.536.0070        | San Diego, CA 92121       |
| Email: [EMAIL PROTECTED]    | http://www.sbc.com        |
+--------------------------+---------------------------+ 


-----Original Message-----
From: Eric Homa [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 11:19 AM
To: CF-Talk
Subject: HTML in URL Variable?


Hi,

I've created a web site for a customer and have come across an interesting
problem.  I wondering if anyone here has experienced something similar.  The
site allows my customer to create new categories using a form submission.
The new categories are then displayed in the left frame of the site.  It
didn't take long for the customer to figure out that they could create bold
category names by using some HTML in the form field.  The category list is
dynamically generated from a table using CF and the link associated with
each category is also generated on the fly.  We have thousands of their
customers that access these categories with no problem.  They click on the
category and it loads the appropriate template in the right frame.  Twice
now we've had customers that claim to get an error message.  It seems that
their browser won't pass the URL variable with the bold tags.

The URL looks like this:
http://www.xyz.com/GoToCategory.cfm?category=<b>Diamonds</b>

The latest customer that cannot access the categories is using IE 6.0 on
Windows 2000.

The error message that he gets is a result of my test for the passed
variable using NOT IsDefined() which tells me that the variable is not being
passed.

Anyone had any experience with this?  Is there an option setting in IE that
could cause this?

Thanks in advance for any input.

Eric Homa




______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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

Reply via email to