Author |
Message |
06/11/2002 19:49:15
|
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.
|
|
09/11/2002 17:29:08
|
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";
}
|
|
11/11/2002 11:49:25
|
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
|
|
11/11/2002 16:56:13
|
Anonymous
|
Im glad i was of some help
|
|
01/12/2002 11:58:36
|
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?
|
|
|