tiamat2012
Programmer
Hey all,
My client has requested that I allow certain symbols in the forms. The only problem is I'm using php to connect to a database, so if I insert these symbols (like a ") it will mess everything up.
My solution is to change the code to special characters (like instead of a " mark it would be " so it is displayed the same way but not processed in the php.
I would like to do this on the "onClick" of the submit button, rather than doing it as they type because I don't want to insert random text into what they're saying (like I could use an onKeyDown)
Does anyone have a good basis for doing this or any useful functions that would help?
-Kerry
My client has requested that I allow certain symbols in the forms. The only problem is I'm using php to connect to a database, so if I insert these symbols (like a ") it will mess everything up.
My solution is to change the code to special characters (like instead of a " mark it would be " so it is displayed the same way but not processed in the php.
I would like to do this on the "onClick" of the submit button, rather than doing it as they type because I don't want to insert random text into what they're saying (like I could use an onKeyDown)
Does anyone have a good basis for doing this or any useful functions that would help?
-Kerry