reportingbuzz
MIS
Hi,
I have a page with 2 IFrames and a single submit button at the main page:
IFrame.asp
iFrame1.html
iframe2.html
In the target page - formresults.asp, I have a simple script to grab all form elements
But this page displays nothing. How can I display the name of the form elements within the IFrames?
Thanks.
I have a page with 2 IFrames and a single submit button at the main page:
IFrame.asp
Code:
<html>
<head>
<title>IFrame</title>
</head>
<body>
<form action="formresults.asp">
<iframe name="iFrame1" id="iFrame1" src="iframe1.html">
</iframe>
<iframe name="iFrame2" id="iFrame2" src="iframe2.html">
</iframe>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>
iFrame1.html
Code:
<html>
<head>
<title>IFrame1</title>
</head>
<body>
Text1: <input type="Text" name="txtIFrame1" value="Text in iFrame1">
</body>
</html>
iframe2.html
Code:
<html>
<head>
<title>IFrame2</title>
</head>
<body>
Text2: <input type="Text" name="txtIFrame2" value="Text in iFrame2">
</body>
</html>
In the target page - formresults.asp, I have a simple script to grab all form elements
Code:
<%
for x = 1 to Request.Form.count()
Response.Write(Request.Form.key(x) & " - ") 'will return the form field name
Response.Write(Request.Form.item(x) & "<br>") 'will return the value
next
%>
But this page displays nothing. How can I display the name of the form elements within the IFrames?
Thanks.