Please help:
I want to put a voting poll in to my CMS.
But I can manage to put the code in a cms page.
this is the result
http://www.agni.nl/cms/index.php?id=38,0,0,1,0,0
this is de code,
To embed a poll into a webpage insert the code snippet from below:
<?php
// Important! You have to include it before your html code include_once "/home/sites/site23/web/agnipoll/db/poll_cookie.php";
?>
<html>
<body>
<?php
include_once "/home/sites/site23/web/agnipoll/db/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>
Jane
But I can manage to put the code in a cms page.
hello
compare the replacement tags you see at the docu site (http://www.phpwcms-docu.de/system_tags.phtml) for php scripts and yours what you post in this thread -> http://www.phpwcms.de/forum/viewtopic.php?t=4897
but i think then you will see the error!
compare the replacement tags you see at the docu site (http://www.phpwcms-docu.de/system_tags.phtml) for php scripts and yours what you post in this thread -> http://www.phpwcms.de/forum/viewtopic.php?t=4897
but i think then you will see the error!

Re: But I can manage to put the code in a cms page.
hello janesital wrote:Please help:
please use this example:
<?php
// Important! You have to include it before your html code
include_once "/home/sites/site23/web/cms/agnipoll/db/poll_cookie.php";
?>
<html>
<body>
{PHP:
include_once /home/sites/site23/web/cms/agnipoll/db/booth.php}
{PHP:echo $php_poll->poll_process(4);}
</body>
</html>
Jane
maybe try it the the url and not with the document root path!
also you use the wrong tags for this!
http://www.phpwcms-docu.de/system_tags.phtml wrote: [PHP] PHP_code [/PHP]
Use: This tag supports the use of php code, which can be be entered directly between the opening and closing brackets
Notation: [PHP]echo PHP_VERSION;[/PHP]
Result: 4.3.10
Remark: This is ideal for short PHP expressions
http://www.phpwcms-docu.de/system_tags.phtml wrote: {PHP:my_external_PHP_script.php}
Use: This tag supports complete external php scripts, ending with the *.php suffix. Phpwcms buffers output to enable these scripts to execute. Very robust including connections to remote databases. See forum for details and usage.
Notation: {PHP:my_external_PHP_script.php}
Result: -
Remark: The file name including the necessary indication of path is to be entered. Longer PHP scripts should be merged if necessary within iframe within phpwcms.