Re: IFRAMES & PHP
| From: | Sean Burlington | Date: | Mon, 27 Jan 2003 17:12:21 +0000 |
| Subject: | Re: IFRAMES & PHP | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133263@lists.php.net to get a copy of this message | ||
Greg wrote:
Here's the basic layout of my html page, this isn't the real html, just the basic idea. <html> <form action="test.php" method="post"> <input type="text" name="test1"> <iframe src = iframetest.php></iframe> <input type="button" label="Submit"> </form> </html> Now inside iframetest.php I have a few check boxes that I want test.php to be able to access. Is there any way to do this? Thanks!!not directly .. the form does not 'contain' the iframe - in fact the iframe is a different page ... so form elements within the iframe page will not be a part of the form submission process you /might/ be able to do something with javascript inter-frame communication - but I doubt you would want to (and the iframe doesn't sound like a valid page which could cause problems) what would probably make more sense would be to make the 'html' page include iframetest.php' html.php ---------- <html> <form action="test.php" method="post"> <input type="text" name="test1"> <?php include("/path/iframetest.php"); ?> <input type="button" label="Submit"> </form> </html> ----------------- then you form elements will be properly contained within the form -- Sean