I am making a website editor and I need to make a box where you can type and it will submit it to the page. Now I have done that but when I refresh that page, the value expires and disappears, I have tried making a SESSION
value and it remained the same problem. Can anyone help?
<script type="text/javascript">
tinymce.init({
selector: "textarea",
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste"
],
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
});
</script>
<form method="post" action="../">
<textarea name="content" style="width:100%"></textarea>
<br>
<input class="btn btn-lg btn-primary btn-block" type="submit" value="Save" />
</form>
I want to submit it to the index, which it is and save that value forever.