If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advance Poll - bugs? when run on file.php?id=43  XML
Forum Index » Support Forum
Author Message
Anonymous



When I run this program on dynamic file like show.php?id=43 when the number is the curent date from database, and when i vote i have problem, becouse the variable Id isn't transfer to the page with result, Could anybody help me.
Anonymous



I had a samre problem some time ago - but i managed to solve it. I wrote the problem and the solution to the developers - but hadn't gote even a thanks-note back. As i see now they hadn't done any changes.

So, here you go:

The fact is that the redirect command (after voting) does not analize the QUERY_STRING - where are all the page parameters stored. So you get an url cut-off after voting.

you just need to add .$QUERY_STRING to redirecting header of the script. Now i don't remember were it is exactly - but you can search the phorum for my message or ...

Oh! look - i found it for you:

You should edit the file "class_poll.php" & set you poll() function 2 look like this:
function poll() {
global $POLLTBL, $db_connect, $PHP_SELF, $QUERY_STRING;
$this->tbl = $POLLTBL;
$this->ip = getenv("REMOTE_ADDR");
$this->db = $db_connect;
$this->pollvars = $this->db->fetch_array($this->db->query("SELECT * FROM ".$this->tbl['poll_config']));
$this->pollvars['poll_version'] = "1.7";
$this->template_set = "default";
$this->form_forward = "$PHP_SELF?$QUERY_STRING";
}
Anonymous



Thank You, it work, i have to add only to global
$PHP_SELF, $QUERY_STRING;
and change form_forward to
$this->form_forward = "$PHP_SELF?$QUERY_STRING";
Once again THANK YOU
Anonymous



Im glad i was of some help
Anonymous



I tried what u said ... but the result keeps opening in the included poll_media.php instead of the media.htm where it was included in

anybody know how to solve this?
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum