How to save this string correctly?
<p>This is my code:</p>

<p>URL: </p>

<pre><code>http://www.mysite.com/t.php?title=The%20Police%20-%20Don't%20Stand%20So%20Close%20to%20Me%20'86%20-
</code></pre>

<p>PHP:</p>

<pre><code>&lt;?php if(!empty($_GET['title'])){ &gt;
&lt;form method="post" action="t.php?done=yes" enctype="multipart/form-data"&gt;
&lt;input type="text" name="title" 
&lt;?php echo "value=\"".htmlspecialchars($_GET['title'])."\""; ?&gt; 
&gt; 
&lt;input name="submit" value="Submit" type="submit" /&gt;
&lt;/form&gt;
&lt;?php } &gt;


&lt;?php if(!empty($_POST['title'])){ 
echo mysql_real_escape_string($_POST['title']);
// I have to put the string in a database ( I haven't added that part )
 } &gt;
</code></pre>

<p>If I follow the first URL and then submit the form, I get this string:</p>

<pre><code>The Police - Don\\\'t Stand So Close to Me \\\'86 -
</code></pre>

<p>instead of:</p>

<pre><code>The Police - Don't Stand So Close to Me '86 -
</code></pre>

<p>Why ? How can I get the last string ?</p>

<p>Thanks</p>

<p>.</p>

<p><strong>EDIT:</strong></p>

<p>I have just discovered that magic_quotes_gpc is ON because get_magic_quotes_gpc() return TRUE. </p>
