include, phpself and inline frames

From: Date: Sat, 22 Feb 2003 09:26:59 +0000
Subject: include, phpself and inline frames
Groups: php.windows 
Request: Send a blank email to php-windows+get-18669@lists.php.net to get a copy of this message
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

« previous php.windows (#18669) next »