Possible Duplicate:
“slash before every quote” problem
Hi, I am trying to use $_GET to send the contents of a text box to another php document. But whenever I try to use single (') or double (") quotes, the text is received as \' or \". When I try to use str_replace, I get a php error. I need to use $_GET instead of $_POST, because I need to be able to bookmark the page.
Here is the code: HTML document:
<form action="result.php" method="get">
<input type="text" name="code" size="70" />
<input type="submit" />
</form>
PHP document:
<?php
echo $_GET["code"];
?>