Click to See Complete Forum and Search --> : Need help with special chars in form text field


ewhitaker
04-11-2004, 09:31 PM
On our site, we are using a form for the customer to enter in their data within the shopping cart system. It is a straight html page which on submission sends to perl scripts on the server and then emails the customer a copy of what they entered as their email receipt. On this form there is an area which is a text box. In this area the customers are to enter in their engraving information which in many instances requires special chars such as the ampersand, etc.,. Also, when they hit the enter key to create a new line it shows up properly in the form before submission, but when they receive their email confirmation which takes that information and emails it to them, the special chars are missing and the text is all run together. Where there was a carriage return, the text just runs on through in a straight line and with no spaces.

I think there is some sort of javascript that can be used to allow the special chars to show up as well as the carriage returns in their text email confirmation, but have no clue how to implement this.

Can anyone give me some pointers or a place I can go to find such a script? The only information I can seem to find is sites with information on preventing hitting the "enter" key from submitting the form, which is not our problem. It just does not show up the same way in the customers email confirmation as it does on the site when they type it in.

Any help would be greatly appreciated!

The site is www.german-toasting-glasses.com and you wont be able to see this form unless you actually add items to your cart and go partially through the system to get to this form.

Thanks,

Evie