| Author | 
					Message | 
				
				 
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 17/08/2002 09:32:53
	  
	
	
 						 | 
					
					
						
						
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
							
							
						 | 
					
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 17/08/2002 16:05:10
	  
	
	
 						 | 
					
					
						
						
Anonymous
 
  
 
 						 | 
		
						
						
							
									rename index.html to index.php
							
							
						 | 
					
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 17/08/2002 18:34:38
	  
	
	
 						 | 
					
					
						
						
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.
							
							
						 | 
					
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 05/10/2002 02:27:21
	  
	
	
 						 | 
					
					
						
						
Anonymous
 
  
 
 						 | 
		
						
						
							
									Alternatively, you can get your server to parse HTML pages for PHP codes.
							
							
						 | 
					
		
					 
						| 
						 | 
					
				
		
				
					| 
						
					 |