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 
I only get "poll_process(1); ?> "  XML
Forum Index » Support Forum
Author Message
Anonymous



I have renamed all the .php files to .php3 and chanched all the files associations and no problem.
Hi! I have installed the advanced poll 2.0 without problems, but I try to insert the poll on my page and I get this message where the poll should go: poll_process(1); ?>
why? For this I inserted :

<?php
// Important! You have to include it before your html code
include_once "/home3/www/web/www.mydomain.com/php/superpoll/poll_cookie.php3";
?>

<html>
<body>
<?php
include_once "/home3/www/web/www.mydomain.com/php/superpoll/booth.php3";
echo $php_poll->poll_process(1);
?>
</body>
</html>

but doesn't work. PLEASE HELP!!
SPeedY_B
Newbie
[Avatar]

Joined: 01/03/2002 16:16:38
Messages: 3
Location: UK
Offline

try the 1 in quotes

echo $php_poll->poll_process("1");
[WWW] [MSN] [ICQ]
Anonymous



Ohh,, it doesn't work!! please help!! I tryed to make a web only with this code:
<?php
// Important! You have to include it before your html code
include_once "/home3/www/web/www.mydomain.com/php/superpoll/poll_cookie.php3";
?><html>
<body>
<?php
include_once "/home3/www/web/www.mydomain.com/php/superpoll/booth.php3";
echo $php_poll->poll_process("3");
?>
</body>
</html>

But it doesn´t work, any idea?
O.C.
Beginner

Joined: 04/03/2002 02:14:19
Messages: 10
Offline

For one thing, what is this php3? Why did you add a 3? It shouldn't be there.
Anonymous



I had the same problem. The webserver obviously does not know he should parse your HTML-page for PHP-code and thus simply displays it!

Change your document type from .html to .php or put an .htacess file with "AddType x-mapp-php4 .php .html .htm" in the root of your server to tell the server to parse html-files.

Hope you get it - I'm not too familiar with PHP myself.
Anonymous



I renamed the .html file to .php3 and .php4 but the result is the same.
I don't know how to do that about htacess of the preview topic, any help?
Anonymous



I got the same problem. I spent hours trying to figure it out. Then I looked at the files that were included, one of them an shtml file. There I found out that we should be using the SSI_php version of it. When I copied and pasted that tag, it works fine.

If you are using shtml for your site, this could be your problem.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum