I'm not sure I understand your reply. This happens with any form element getting processed in any way by php. Here is a full-document example.
page1.html:
CODE
<html>
<head>
<title>Example</title>
</head>
<body>
<p>This is an example.</p>
<form action="example.php" method="post">
Your name is: <input type="text" value="" id="yourname" name="yourname" />
</form>
</body>
</html>
example.php
CODE
<html>
<head>
<title>My name is <?php echo $_POST["yourname"] ?></title>
</head>
<body>
Hello, <?php echo $_POST["yourname"] ?>. Welcome to this example page!
</body>
</html>
Now, say for example, someone's name is John O
'rielly. Well, example.php would display the html code as follows:
CODE
<html>
<head>
<title>My name is John O\'rielly</title>
</head>
<body>
Hello, John O\'rielly. Welcome to this example page!
</body>
</html>
What I want to do is prevent it from showing that backslash. Does that explain it better? I hope?