Hi,
I am passing a form by method="post" into a php page that
checks the answers to see if they're correct.
If I have an input box, and I enter an apostrophe, like who's or
their's - then it is written to the screen on the php page as
who\'s and their\'s
I need to replace all instances of \' with just ' in all variables passed through from the form.
What way can I do this in 1 bit of code where I don't have to list out all of the variables that are passed to it.
This is because I have a serious amount of files, about 100 where I dont want to write down each variable over again
if ($value1 == "mustn't") $score++;
if ($value2 == "doesn't") $score++;
..
..
..
if ($value50 == "can't") $score++;
Thanks,
Adrian