Hi all
I'm going a bit nuts. Can anyone suggest why the following does not convert the ampersands to & please when the form is posted? It actually does nothing except escape the quotes but my understand was that it should convert the quotes to there respective HTML characters.
$subject = htmlspecialchars($_POST['subject'], ENT_QUOTES);
'subject' is the name of my text field in my form. If I type single or double quotes, they are successfully escaped because I am using ENT_QUOTES therefore I know part of it is working, however the ampersands are not converted at all.
Any suggestions?
Thanks in advance