[thelist] iframe

Dan McCullough dmccullough at garnethill.com
Fri Jul 23 13:03:37 CDT 2004


I have never used an iframe, but I seem to have to on this one project.

I need to take two fields pass them to and iframe page and then have
that submit to another site.  So this is the example that I found.

<html>
<body>
<form name="pForm">
<input type="text" name="Input">
<input type="text" name="Input2">
<iframe name="myFrame" src="mypage.htm" height="1" width="1">
</iframe>
<input type=button value="SubmitIframeForm"
onClick="window.frames.myFrame.document.iForm.submit();">
</form>
</body>
</html>

<html>
<body onUnload="parent.document.pForm.submit();">
<form name="iForm">
<input type="text" name="Export">
<input type="text" name="Export2">
</form>
</body>
</html> 

Where I get lost/confused is I need to send the infromation to a URL
that is not mine, I need to make sure the page refreshes/validates and
then submits behind the scenes.

Does that look right, will those two Inputs get to the other website?


More information about the thelist mailing list