PDA

View Full Version : Advanced Poll - Assistance required



Packleadr
07-29-2006, 07:35 AM
Hi installed Advanced Poll to do a small survey and it doesnt work properly.
Im sure its just something stupid, Your assistance would be appreciated.

It was install with Fantastico.
this is what I get displayed on my webpage:

include_once "/home/thejnbgr/public_html/homebizmore/poll/booth.php";
echo $php_poll->poll_process(4);
?>

This is what I copied and paste to my html code:

Before the Head Section:

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

In Body Section:

<?php<br> include_once "/home/thejnbgr/public_html/homebizmore/poll/booth.php";<br>
echo $php_poll->poll_process(4);<br>
?>

So what is wrong Please Help

Jacques
http://www.home-business-and-more.com

bobdog
07-29-2006, 10:59 AM
I have used phpads new before. In your code, make sure there are no spaces between the opening php and the html like this:

<?php
// Important! You have to include it before your html code
include_once "/home/thejnbgr/public_html/homebizmore/poll/poll_cookie.php";
?><html><head><title>

Packleadr
07-29-2006, 11:47 AM
Thanks, but it didnt seem to work

I left the page on the site you can see it at
http://www.home-business-and-more.com/indexpoll.html

maybe the source code is wrong?

bobdog
07-29-2006, 11:56 AM
Thanks for the link.

You need to rename the document to .php so the server will parse the code!

Packleadr
07-29-2006, 07:24 PM
Thanks Bogdog
Now it works. I knew it was something stupid.
Like you said just renaming it to .php