frame or php include, and how?
In my main page, I am trying to show a poll as below. The poll file is called display_poll.php. I want it to appear only in the div poll_ai as below, just a small part of the whole page. But it doesnt show anything.
I tried everything written in comment tags too as below. It shows nothing.
By the way, the poll file form is like this:
echo "<form method=\"post\" action=\"display_poll.php\" target=\"_self\" >";
so once user clicks submit, again it posts to itself. So, what I want is, it still should display this file as part of the main page, in that frame. I dont want it to open as a separate page, as it currently does if I did php inlude.
For the form:
<form action="<?php echo $PHP_SELF; ?>" method="post">
this works, thanks a lot. well not exactly how you wrote because the echo form statement was in php already, so here is how:
echo "<form method=\"post\" action=$kat target=\"_self\" >";
and i use php include, not I frame...for some reason, I can not get iframe to work....
if anybody knows a shortcut to this, I would like to see that too...
What has the frameset go to do with the problem?
The document display_poll.php must be a complete document to be loaded into an iframe, yet you apparently also load it into the parent document. This is wrong.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread