I am trying to use an iframe in my application


mainpage.jsp
<HTML>
<BODY>
<form name="form2" method="post" action="action.jsp">

<input type="text" name="name" value=""/>

<input type="submit" name="submit" value="submit"/>

<iframe src="ifream-page.jsp" frameborder="0">

</form>
</BODY>
</HTML>


ifream-page.jsp

<HTML>
<BODY>
<input type="text" name="address" value=""/>
</BODY>
</HTML>


But when I press the submit button I can only get the “name” attribute at the action.jsp file. The value of the address field is shown as null.

So what is the reason for this.
And also I want to find the solution (get the both values at the action.jsp file) without removing the iframe.

Please help me to get the aprameter values include in iframe page…

thanks

Recommended Answers

All 4 Replies

if so please tell me a way to get the vlues of input fields that include in the iframe page

don't use iframe, that whar I can say

the page loaded into the iframe is a completely separate entity, and has nothing to do with the page in the main frame.

While they can communicate using cookies and Javascript, that's not recommended (just as the use of iframes is not recommended, and in fact in the latest html standard they've been removed).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.