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 
Need help with adding poll.  XML
Forum Index » Support Forum
Author Message
Anonymous



Hello,

I know this topic is requested 100000 times and I have all seen them and read them and try them out onto the server where our website is running.

But without any succes, I have also tried to change the htm files where it's embedded to rename to .php and shtml but I still get a text line

"poll_process(1); ?> all the time

Our website is running in frames one top frame and a frame below the top frame where all text and data is viewable for our visitors.

I mada a complex table with included soem text photo's at the left site of the table and at the right site I want to put the poll.

our poll dir is /poll and the poll id we want to place is 5 i hope this is all you need for information on no oops forgot to mention we have installed the mysql poll version.

Please be kind with me

With best regards,

Jeffrey
Anonymous



I thought this was a help form for solving problems but nobody helped me please please help me

regards,

Jeffrey
Anonymous



I actually have the same problem..
I can't add a poll to a HTML document.. It only shows "poll_process(5); ?>"


Is this code right?
<?php
// Important! You have to include it before your html code
include_once "/home/myusername/public_html/pollphp/poll_cookie.php";
?>

<html>
<body>
<?php
include_once "/home/myusername/public_html/pollphp/booth.php";
echo $php_poll->poll_process(5);
?>
</body>
</html>
Anonymous



Well the code is not the problem!

What you have to do make a new html document
name it for example poll

before the first code (<html> place

<?php
// Important! You have to include it before your html code
include_once "/home/myusername/public_html/pollphp/poll_cookie.php";
?>

And between the <body></body> code place this:

<?php
include_once "/home/myusername/public_html/pollphp/booth.php";
echo $php_poll->poll_process(5);
?>

Save the entire document as poll.php not as poll.html or poll.htm

now ftp this page anywhere in your domain.

Now point your browser to www.yourdomain.com/poll.php
and see there it's your created poll.

I hope I have helped you?

with best regards,

Jeffrey
Anonymous



I did the previous as well, and the poll works fine on the poll.php page...However, how do you embed the poll into a ".html or .htm" web page. Do you have to designate part of the code to read as php??
Anonymous



Thanks BrainStorm,
I think you have helped out more webmasters than you know. This is a great script, I just wish that there was more documentation. Great post!
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum