I know this isn't a PHP question, but I think I can find help here.
I need to copy the text in a textarea to another form when the submit button is clicked on the other form.
Here is my code:
<form method=POST name="form1" ....>
<TEXTAREA name="htmlsource">
//user types here
</TEXTAREA>
</form>
form method="POST" name="form2" target="previewwindow" action=my url>
<input type=hidden name="htmlsource" value="">
<input type="SUBMIT" name="preview" value="Preview" onClick="document.form2.htmlsource.value=document.form1.htmlsource.value;window.open('about:blank','previewwindow');">
</form>
When I click the submit button, I do not get any POST data other than the button's value.
Please Help!