Forums
This topic is locked
special characters problem
Posted 29 May 2006 20:06:22
1
has voted
29 May 2006 20:06:22 Javier Castro posted:
Hi,I have an order form that has 3 fields. It is located on the left side of the page. On the right side there is a table with a list of products and codes. the User can click on the product codes of the product table instead of typing. That's great but now a new catalogue was printed and the format for the product codes has changed to a format that includes backslashes: i.e. T-INT\5221
My problem:
some of the product codes are like this:T-INT\5221
when the user clicks on the product code to autofill the form, the " \ " backslash in the code is ignored or changed to an asterix. Therefore when the order is submitted, no product is ordered.
I don't understand where the problem could be, because the products are in an Access Database and the particular field is a text field that happily accepts any characters. I wonder if the culprit is the javascript that helps with the autofill any ideas?????? here is the code I'm using to autofill the form.
<div align="center"><a href="#" onClick="javascript:document.form1.prodID.value = '<%=(rsProducts.Fields.Item("product_code".Value)%>';"><%=(rsProducts.Fields.Item("product_code".Value)%></a></div>