first of all i'm new here so if I do mistakes pls let me know^^"
I try to get the content of a div element with php $_POST and I dont really know how to do it. I use MVC patter if that matters. My div is editable and the answer box to write something on the page.
<form action="index.php?page=addPost&topic_id={TOPIC_ID}" method="post">
<div id="editor" name="editor">
Lorem Ipsum...
</div>
<input type="submit" name="submit" value="senden" >
</form>
I can't just use a textarea but I would like to get everything between the div element with something like
$text = $_POST['editor'];
is that possible?