The result I have from your script is:
Code: Select all
<form action="test.php" method="post">
name=it's 1".<br><input type="submit" name="go" value="Submit">
</form>I see your use of htmlspecialchars() but I do not see why its being used for this instance, if there is only 1 value to convert you can just exchange the known value, so I'm not seeing what it is you are trying to do in this instance. More details please and I will help you figure it out.