Issue with textarea in PHP
<p>I have the following code.</p>

<pre><code>print("  &lt;form action='home.php' method='POST'&gt;
            &lt;textarea name='changemainhometa' id='msgpost'&gt; $home &lt;/textarea&gt;
            &lt;input type='submit' name='changemainhomefinal' value='Change' /&gt;
         &lt;/form&gt; ");
</code></pre>

<p>The value <code>$home</code> is extracted from the database</p>

<p>Now I change the text in the textarea and press submit.</p>

<p>Then, the following code is executed:</p>

<pre><code>$value = $_POST["changemainhometa"];
print($value);
$query = mysql_query("UPDATE contentdata 
                      SET text = $value 
                      WHERE key = 'home' ");  
print("Succesvol gewijzigd");
</code></pre>

<p>But now, every time i execute this code, it does not update, but it sets <code>$value</code> to the old variable from the database, instead of the new one which I entered in the textarea</p>

<p>Btw., <code>id:msgpost</code> is from the yahoo text editor.</p>
