Click to See Complete Forum and Search --> : Quotes preventing array elements from showing in txtfld


kredd
09-14-2005, 12:12 PM
hello all,
i have a recordset that i am putting into an array and then displaying as a list of products. i'm using a for loop and 'catArray(1,i)' holds all the names of the products. i use this element in two diff places. the first place is just a bolded title for users to see, the second is in a hidden text field to pass the value to the cart.

the first place displays great, but in the second place(hidden textfield) any product name that has quotes around it will not display even tho the other non-quoted product names do display in the loop. i've tried the replace() function and nothing works.

any ideas???
kelly

HaganeNoKokoro
09-14-2005, 12:16 PM
Are you using Server.HTMLEncode to encode the values?

kredd
09-14-2005, 12:22 PM
dude, thanks. that worked perfectly. i've seen 'Server.HTMLEncode ' before but never used it. i'll def have to read up on it. thanks again...