Hi,
I have a guestbook and one of the fields (a textbox) allows all characters (the other fields only allow a-zA-Z through javascript), and when a special character is typed into the textbox (',",\) and I echo it using php, that character appears on the page quoted.
For instance, if I typed "can't" into the text box and submitted it, it would display as "can\'nt" on the page. Is this something that PHP is doing to the string? I have tried many different ways to try and get rid of the \ (there are many of them: ereg,preg,unquote,uncquote) using PHP, but everything I tried just returned an empty string.
Any idea what's going on? Thanks!!!
Natwod
I have a guestbook and one of the fields (a textbox) allows all characters (the other fields only allow a-zA-Z through javascript), and when a special character is typed into the textbox (',",\) and I echo it using php, that character appears on the page quoted.
For instance, if I typed "can't" into the text box and submitted it, it would display as "can\'nt" on the page. Is this something that PHP is doing to the string? I have tried many different ways to try and get rid of the \ (there are many of them: ereg,preg,unquote,uncquote) using PHP, but everything I tried just returned an empty string.
Any idea what's going on? Thanks!!!
Natwod