mardi 3 mars 2015

Submitting an h2 tag with a form to a server?

So here's what I'd like to do. Here's the code:



<div class="wrapper">
<h2 contenteditable="true">Editable Content WOO</h2>
<div class="box-a box"></div>
<div class="box-b box"></div>
<div class="box-c box"></div>
<form action="submit.php" method="post">
<textarea id="textbox" class="editor" name="editor" contenteditable="true"></textarea>
<input class="save" type="submit" value="Save">
</form>
</div>


The h2 tag is content editable, I'd like to make that the "name" of said submission. I'm doing a project in school, and it's basically a simple HTML5 live editor, but I like the look of the contenteditable h2. I think of it like Google Doc's title. If you need me to be more specific, I can be, it's 2am right now and I gotta get some sleep. Much appreciated.


Aucun commentaire:

Enregistrer un commentaire