I have the following code.
print(" <form action='home.php' method='POST'>
<textarea name='changemainhometa' id='msgpost'> $home </textarea>
<input type='submit' name='changemainhomefinal' value='Change' />
</form> ");
The value $home is extracted from the database
Now I change the text in the textarea and press submit.
Then, the following code is executed:
$value = $_POST["changemainhometa"];
print($value);
$query = mysql_query("UPDATE contentdata
SET text = $value
WHERE key = 'home' ");
print("Succesvol gewijzigd");
But now, every time i execute this code, it does not update, but it sets $value to the old variable from the database, instead of the new one which I entered in the textarea
Btw., id:msgpost is from the yahoo text editor.
I fixed it already, it was an error in the YUI simple editor, which did not allow me to submit data, for future reference, i fixed this with
submitHandle:truein the configuration.