Re: IFRAMES & PHP

From: Date: Mon, 27 Jan 2003 17:10:51 +0000
Subject: Re: IFRAMES & PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-133258@lists.php.net to get a copy of this message
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!! "Chris Shiflett" <shiflett@php.net> wrote in message news:20030127161720.34512.qmail@web14305.mail.yahoo.com... > --- Greg <gregchagnon@hotmail.com> wrote: > > Hi, I have a form with an IFRAME nested in it. When > > the form is submitted, I can't get the values of the > > checkboxes in the IFRAME, is there any way to do > > this? > > Well, I think (I could be wrong) you're looking at this > wrong. > > Forms submit to resources identified by URLs. You specify > this with the action attribute of the form tag. There is no > idea of frames here. > > If you mean that the resource that your iframe loads does > not have access to the form variables, then change your > action attribute to that resource, and then it will. > > Chris

« previous php.general (#133258) next »