I am trying to submit a form with several different inputs that all work fine. However, one of the inputs is a text box (sort of). I had to change it to content edited by a div, mainly because I created my own bold, italic, and underlined buttons that won't work with regular text fields. The problem is that the form on submit does not send text to php, and I was wondering what I can do to get the div value in php.
Here is the "textarea":
<div id="dash_new_shout_textarea" name="dash_new_shout_textarea"
class="dash_new_shout_textarea" contenteditable="true"
placeholder="Write your shout..." name="dash_new_shout_textarea"
value="<?php echo isset($_POST['dash_new_shout_textarea']) ?
$_POST['dash_new_shout_textarea'] : '' ?>"></div>
A form is just a normal form with the = post method.
Here is the php:
$newShoutTextarea = $_POST['dash_new_shout_textarea'];
thanks for the help
source
share