Skip to content

24 ways to impress your friends

Vote down?

Joe W.

You need to remove the backslashes in the example of your PHP script.

Possible patch:

$the_name = htmlspecialchars(stripslashes($_GET[‘greeting-name’]));

Actually, if this is a script you’re gonna share across other servers you should probably check what the magic_quotes setting is before stripping the quotes.