jwysiwyg to php
- by perses
I am using this jQuery based jWysiwyg.
http://code.google.com/p/jwysiwyg
How do I pass the value of $('#wysiwyg').val() to php script. For example to show the value of jwysiwyg in an alert box, I am using
<form name="form1" method="post" action="sendmail.php">
<textarea name="wysiwyg" id="wysiwyg" rows="5" cols="103"></textarea>
<input type="submit" name="Submit" value="Login"></input>
<input type="button" value="Alert HTML" onclick="alert($('#wysiwyg').val());" />
</form>
What I need is how to pass value of jwysiwyg's value in submit control and how do I call "logout.php" on pressing of a button?