The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Here's the deal.
When entering text into a textarea or textbox and submitting it then echoing it on another page, some of the characters don't seem to come out properly.
For example.
Apostrophies: It's
Come out as: It\'s
Any ideas as to why?
if (get_magic_quotes_gpc()) {
# Automatic add slashes is on.
}
By default, PHP allows for the addslashes function to automatically be run on any data being sent via POST (form), GET (query string) or from a COOKIE, which is what is happening on your web server (the magic_quotes_gpc value in the php.ini file is set to on).
The stripslashes function, as I'm sure you can already guess, strips out these slashes.
[URL]http://uk.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc[/URL]
Here's the deal.
When entering text into a textarea or textbox and submitting it then echoing it on another page, some of the characters don't seem to come out properly.
For example.
Apostrophies: It's
Come out as: It\'s
Any ideas as to why?