mrslate1
asked on
How to automatically render & to & in form text field
Hi, I am attempting to work through users potentially replacing a typed & which in our code is not allowed, with & either using JavaScript or the like. We wish to have it converted when the user hits the send button to search a database for reporting data.
Some of the code that we have used for this purpose has failed, and it seems to me it should be a simple if then statement upon send. But I'm not sure of the correct syntax.
Does anyone have code, and possibly a working example? I would very much appreciate any help.
Thank you in advance
Todd
Some of the code that we have used for this purpose has failed, and it seems to me it should be a simple if then statement upon send. But I'm not sure of the correct syntax.
Does anyone have code, and possibly a working example? I would very much appreciate any help.
Thank you in advance
Todd
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use ASCII Character & for &. It should work.
The question is what are you using server side to process in the incoming data?