17
rated 0 times
[
23]
[
6]
/ answers: 1 / hits: 44278
/ 11 Years ago, thu, march 21, 2013, 12:00:00
What I've done is:
HTML
<form>
<div id=textBox contenteditable=true name=textBox><?php echo $storyText; ?>
</div>
<textarea id=hiddeninput name=hiddeninput></textarea>
<input type=submit id=save name=save value=Submit/>
</form>
Javascript
$('#save').click(function () {
var mysave = $('#textBox').html();
$('#hiddeninput').val(mysave);
$(form:first).submit();
$('#hiddeninput').append(mysave);
alert($('#hiddeninput').val());
});
So both the alert and the append display the correct information, but it won't save #hiddeninput as a php variable when I submit. Originally I had this as an hidden input method, but I'm trying to show that it won't post no matter what I do,
More From » php