Hello ,
i have a problem with form.
i want submit a form to page that appear in iframe in the same page.
and this ifram have to appear instead of the form it self.
simple example here in [url]www.tinypic.com
when you upload the image the action page appear instead of the form.
i used this code
[CODE]
<html>
<script language=”javascript”>
function toggleFRAME(id)
{
var div = document.getElementById(id);
div.style.display = “block”;
div.innerHTML=”<iframe name=’IFRAMENAME’ src=’PAGENAME.PHP’></iframe>”;
}
</script>
<body>
<form method=”POST” action=”PAGENAME.PHP” target=”IFRAMENAME”>
<input type=”text” name=”USERINPUT” id=”SOME_INPUT” value=””>
<br />
<input type=”submit” value=”SUBMITTED” name=”SUBMIT” id=”THIS_IS_SUBMITTING” onclick=”javascript:toggleFRAME(‘divID’);”>
</form>
<div id=”divID”></div>
</body>
</html>
when i used this code the iframe appear but its appear next of the form.
that mean the form steal in the page.
any want can help me in this issue?
thank you