<textarea name="pageeditor" id="tbMsg" style="height:350px;width:100%;"></textarea>
is the code to my textarea.
It doesn't submit (wont set $_POST['pageeditor']) but it will if I do:
<textarea name="pageeditor" id="tbMsg" style="height:350px;width:100%;">TEXT HERE</textarea>
which doesn't make any sense to me. It doesn't submit any text I type in on the page, but will if I hard code it into the page.
any ideas?
I tried this and it seems to be displaying the textarea
text that I enter.
<?php
echo "<pre>";
print_r($_POST);
echo $_POST['pageeditor'];
echo "</pre>";
?>
<form method="post">
<textarea name="pageeditor" id="tbMsg" style="height:350px;width:100%;"></textarea>
<button type="submit" name="form_submit"> Submit</button>
</form>
<p>
<?php
if(isset($_POST['submit']))
{
echo $_POST['textarea'];
}
?>
</p>
<form method="post">
<textarea name="textarea" cols="30" rows="10"></textarea>
<button type="submit" name="submit">Submit</button>
</form>