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 
CMON, POLL HELP, IF U GOT IT WORKING THEN HELP  XML
Forum Index » Support Forum
Author Message
Anonymous



ok under the line is what the "beginning" of my html is. When i run the page-- at the top it shows "poll_process(4); ?> " then under my original stuff.

For a test gogo http://www.viralcore.com/


HERES WHAT MY HTML BEGINS WITH:
_________________________________________________________
<?php
// Important! You have to include it before your html code
include_once "/home/viralcor/www/www/Scripts/Poll PHP/textfile/poll_cookie.php";
?>

<html>
<body>
<?php
include_once "/home/viralcor/www/www/Scripts/Poll PHP/textfile/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>

"""""""""""ok now begins the other code that was originally there*********

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Viral-Core</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">



please someone take 20 seconds to help me, thx
Anonymous



i'm having the same problem. any info would be great.
Anonymous



Try this :

<?php
// Important! You have to include it before your html code
include_once "/home/viralcor/www/www/Scripts/Poll PHP/textfile/poll_cookie.php";
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Viral-Core</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
</head>

<body>
<?php
include_once "/home/viralcor/www/www/Scripts/Poll PHP/textfile/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>

Try this. I have reconfigured your code to make sure everything is closed off. Only this code,

<?php
// Important! You have to include it before your html code
include_once "/home/viralcor/www/www/Scripts/Poll PHP/textfile/poll_cookie.php";
?>

Only that code(above) has to be a the very top of each page that the poll is on. The code that shows where your poll is on the page can go anywhere in the body.

Also very important: Make sure the extension of your page is .php not .html. If it is .html, simply change the extension to .php and it should work
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum