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 
Help with advance poll  XML
Forum Index » Support Forum
Author Message
Anonymous



<?php
// Important! You have to include it before your html code
include_once "c:/program files/apache group/apache/htdocs/poll/poll_cookie.php";
?>

<html>
<body>
<?php
include_once "c:/program files/apache group/apache/htdocs/poll/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>


i try to save this as index.html but it could not work. the output is like this


poll_process(4); ?>



just like that when i try to access the index.html.
the process 4 does exist.whta's happening.



another question is how dou embed the poll in a table.similar to the one inyour index page.the one on the right side. pls help...


thank you
Anonymous



rename index.html to index.php
dunnma
Beginner

Joined: 13/08/2002 23:09:49
Messages: 10
Offline

For future reference any page that has php script on it must be named .php

As far as putting it anywhere on a page, just do the same thing you would do if you wanted a table.

<table width="125" align="right" cellspacing="0">
<tr>
<td>
<?php
include_once "/blah/blah/blah/booth.php";
echo $php_poll->poll_process("random");
?>
</td>
</tr>
</table>

You just have to align your table. You could also do it in a layer if you wanted to.
Anonymous



Alternatively, you can get your server to parse HTML pages for PHP codes.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum