Author |
Message |
27/05/2002 15:26:30
|
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.
|
|
29/05/2002 00:10:04
|
Anonymous
|
please post the url where the poll is installed
|
|
29/05/2002 00:20:57
|
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.
|
|
29/05/2002 00:31:37
|
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",......
|
|
29/05/2002 07:26:52
|
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.
|
|
29/05/2002 10:49:21
|
Anonymous
|
why do you use wrong paths ?
|
|
03/06/2002 14:15:14
|
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.
|
|
04/06/2002 11:17:50
|
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" -->
|
|
06/06/2002 12:07:19
|
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.
|
|
|