ASP中iframe传值问题

来源:百度知道 编辑:UC知道 时间:2024/05/31 00:11:13
B.ASP
<input type="text" name="AAA">

A.ASP
<form action="C.ASP" method="POST">
<table><tr><td>
<iframe src="B.asp"></iframe>
</td></tr>
<tr><td>
<input type="submit" value="下一步">
</td></tr>
</table></form>

请问如何将<input type="text" name="AAA">中的值传到C.ASP中

这样是不行的
<form action="C.ASP" method="POST" onsubmit="this.AAA.value=document.frames['b'].document.getElementById('b').value;return true;">
<table><tr><td>
<iframe src="B.asp"></iframe>
</td></tr>
<tr><td>
<input type="hidden" name="AAA" id="AAA" value="">
<input type="submit" value="下一步">
</td></tr>
</table></form>

B.ASP
<input type="text" id="AAA" name="AAA">

c=trim(request("AAA"))

<form action="C.ASP" method="POST" onsubmit="this.AAA.value=document.frames['b'].document.getElementById('b').value;return true;">
<table><tr><td>
<iframe src="B.asp"></i