jwysiwyg to php
<p>I am using this jQuery based jWysiwyg.<br>
<a href="http://code.google.com/p/jwysiwyg" rel="nofollow">http://code.google.com/p/jwysiwyg</a></p>

<p>How do I pass the value of <code>$('#wysiwyg').val()</code> to php script. For example to show the value of jwysiwyg in an alert box, I am using</p>

<pre><code>&lt;form name="form1" method="post" action="sendmail.php"&gt;
    &lt;textarea name="wysiwyg" id="wysiwyg" rows="5" cols="103"&gt;&lt;/textarea&gt;
    &lt;input type="submit" name="Submit" value="Login"&gt;&lt;/input&gt;
    &lt;input type="button" value="Alert HTML" onclick="alert($('#wysiwyg').val());" /&gt;
&lt;/form&gt;
</code></pre>

<p>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?</p>
