well i got WMD but i am unable to learn how to get the generated HTML\Markdown Code.... i want to send it to the DB... thats why i am using PHP....
<script src='wmd.js'></script>
<form name="formname" method='POST'>
<textarea id="myTextarea" style="width: 500px; height: 200px;">
*This* example sets WMD's options programmatically.
</textarea>
<input type="submit" name="sub" value="submit">
</form>
<!--Preview Can Be Seen Here-->
<div class="wmd-preview" id="wmd"></div>
<?php
if( isset( $_POST['sub'] ) )
{
$generated_HTML = "How to get it here";
}
?>
now can anyone please tell me how to get the generated HTML...
The WMD editor is just a client-side text editor that supports the input of markdown-formatted text. To convert markdown to HTML you'll need a markdown parser.
A quick google tells me there's at least one available: http://michelf.com/projects/php-markdown/