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 
"Poll ID Does Not Exist!"  XML
Forum Index » Support Forum
Author Message
Gandalf
Beginner

Joined: 27/05/2002 13:11:13
Messages: 10
Offline

I can now actually create new polls but when I vote I get "Poll ID Does Not Exist!" displayed. If I then close the window (it's in a pop-up window) and then refresh the (index) page I get the results of the survey as normal. The poll definitely exists.

[Email]
Anonymous



please post the url where the poll is installed
Gandalf
Beginner

Joined: 27/05/2002 13:11:13
Messages: 10
Offline

The link is www.gatewayministries.co.uk/poll5.shtml, and it will open in a pop-up window.
[Email]
Anonymous



you can't use the SSI script in JS.

<SCRIPT>window.open("http://www.gatewayministries.co.uk/poll/poll_ssi.php?poll_id=5",......

create a new poll and save it as my_poll.php



and fix your stupid poll5.shtml

<SCRIPT>window.open("http://www.gatewayministries.co.uk/poll/my_poll.php?poll_id=5",......
Gandalf
Beginner

Joined: 27/05/2002 13:11:13
Messages: 10
Offline

Thanks for your reply, but I don't understand what you mean.

I created a file called my_poll.php as follows:

<?php
include "/usr/home/g/a/gateway/public_html/poll/poll_cookie.php";

/* path */
$poll_path = "/usr/home/g/a/gateway/public_html/poll/polldata";

require $poll_path."/usr/home/g/a/gateway/public_html/include/config.inc.php";
require $poll_path."/usr/home/g/a/gateway/public_html/include/$POLLDB[class]";
require $poll_path."/usr/home/g/a/gateway/public_html/include/class_poll.php";

$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();

$php_poll = new poll();

/* poll */
if (isset($HTTP_GET_VARS['poll_id'])) {
echo $php_poll->poll_process($HTTP_GET_VARS['poll_id']);
} else {
echo $php_poll->poll_process("random");
}

?>

But get an error when I try. Perhaps you would have a look again? www.gatewayministries.co.uk/poll5.shtml

Go easy on me, would ya. Do you need to be rude? I mean, "fix your stupid poll5.shtml". I may not understand this as much as you do, but there's no need to be rude. I'm experimenting and came looking for help, not criticism. Thanks.
[Email]
Anonymous



why do you use wrong paths ?

Gandalf
Beginner

Joined: 27/05/2002 13:11:13
Messages: 10
Offline

Thanks for your help. I've sorted the pop-up now. But I can't get the poll to include in a page unless I rename the page with a .php extension, which is a pain when I need to run Server Side Includes on the same page. Can you help with this, please.

BTW, the poll referred to in previous posts of mine is no longer on line.
[Email]
Anonymous



you can include the poll in your ssi page if your server is running Apache.
<!--#include virtual="/poll/poll_ssi.php?poll_id=your_poll_id" -->
Gandalf
Beginner

Joined: 27/05/2002 13:11:13
Messages: 10
Offline

Thanks, but that is the code I have been using and it still doesn't work.
[Email]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum