I have a form which sends some variables. but i need to have an IFRAME inside this form which has its own variables.
My question is if i can get this IFRAM's variables into my main page ( parent )
here is the first file 1.php
Expand|Select|Wrap|Line Numbers
- <form action="1.php" method="post">
- <input type="text" name="text1">
- <ifram src="2.php" width="100" height="100"></iframe>
- <input type="submit" value="submit">
- </form>
- <?PHP
- print $text1."--".$text2;
- ?>
Expand|Select|Wrap|Line Numbers
- <input type="text" name="text2">
when user submits the form only the text written in the first box will be shown...
is it possible to get the value of the second box? (text2)
Thanks