RE: [PHP-WIN] include, phpself and inline frames

From: Date: Sat, 22 Feb 2003 17:05:46 +0000
Subject: RE: [PHP-WIN] include, phpself and inline frames
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-18674@lists.php.net to get a copy of this message
Make the action of the form "poll.php" instead of $PHP_SELF. $PHP_SELF is the parent document. Matt |-----Original Message----- |From: m1nt ch3w [mailto:m1ntch3w@iprimus.com.au] |Sent: Saturday, February 22, 2003 3:27 AM |To: php-windows@lists.php.net |Subject: [PHP-WIN] include, phpself and inline frames | | |Howdy all, | |I am trying to get a poll to work on my site. I am using |Inline frames to |display the content. The poll is outside of the iframe and is |put in using |<? include("poll.php"); ?> | |What I was aiming to do was, when you click "vote" to submit |your vote, the |results would appear in the Iframe. | |So in poll.php i have: | |<form method="post" action="<?=$PHP_SELF ?>" target="Iframe"> |(this isn't in between <? ?>) | |I tried it by inserting the full code of poll.php into page |rather than use |include(), but it displayed the whole page again into the |inline frame. How |would I go about just getting the poll.php file to appear in |the inline |frame? I thought using include() would work as it does when |you use it with |asp. | |I will eventually remove the inline frame, but for now i'm using them. | |Any help is appreciated, |/m1nt | | |-- |PHP Windows Mailing List (http://www.php.net/) |To unsubscribe, visit: http://www.php.net/unsub.php | | |

« previous php.windows (#18674) next »