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 
Error with .html and Advanced Poll  XML
Forum Index » Support Forum
Author Message
Anonymous



hi everybody,

I have some problems when I try to execute this script in html pages.
If I execute in .php file works fine but when I execute in an .html page return me this:

poll_process(1); ?>

I unclude this source in my web:
<?php require "votos/booth.php"; ?>
</head>
<body>
<?php
echo $php_poll->poll_process(1);
?>

how I execute this poll in a html page?

thanks
Anonymous



I believe you can only execute it with .php pages. You can't use .html extension, rename it with .php extension.
Anonymous



I had the same problem. I guess, you are using html templates for you php file. So these functions are just printed to html, not executed. You can't use php scripts inside you templates. Move it to php.
Anonymous



Hey!

Don't listen to them. They are all jerks...
You CAN! use php scripts in your .htm or .html files!
Do this:
1. Make a file .htaccess within the root with your .htm/.html file.
2. Put this line into the .htaccess file: AddType application/x-httpd-php .html .htm

THAT'S ALL!
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum