Hi. I'm creating a class to generate HTML objects on the fly. I want to make different kinds of textboxes, and one of them is an e-mail textbox.
I'm using some JavaScript code to check that the values in the textbox are the correct ones. I use the following code:
var filter=/(\w+(?:.\w+))@((?:\w+.)\w[\w-]{0,66}).([a-z]{2,6}(?:.[a-z]{2})?)$/i
I actually "copied and pasted" the code.
What i would like to know is if there is any function that would protect ALL of of PHP special characters in this text line. addslashes function protects only some of them.
¿Is there any function that makes this? And, if there is, ¿how do i use it?
Thank you for your support.
fLIPIS