Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
23/03/2003 01:23:26
|
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
|
|
24/03/2003 13:52:41
|
Anonymous
|
i'm having the same problem. any info would be great.
|
|
24/03/2003 15:53:46
|
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
|
|
|
|
|
|
Based on the open source JForum
|