Hi, I'm facing problem as of bellow,
<form name="form_preview" id="form_preview" action="xxxx.php" method="POST" target="iframe_p">
<input type="hidden" name="post_data" id="post_data" value="xxxxxxxx">
</form>
<script language="JavaScript">
document.forms['form_preview'].submit();
</script>
I'm having nested forms and trying to submit an inner form. This condition throws me an error like "document.forms['form_preview'] undefined"
please Help!