| 
	
 | 
 Posted by MS on 05/29/06 21:03 
If my previous answer does not answer your question, i am at a loss as to 
what you are trying to achieve!! 
 
you have the functions.php, which presumably holds your functions for 
creating the php elements. 
 
therefore the 2 steps you need to create your page is to... 
 
1) include your functions.php 
2) call the relevant function 
 
--  
---------------------------------------------------------------------------- 
http://www.myclubweb.co.uk - The Home of Club Websites 
---------------------------------------------------------------------------- 
 
 
"kenoli" <kenoli@igc.org> wrote in message 
news:1148918840.710562.6960@j73g2000cwa.googlegroups.com... 
> The included html file does not define the function but it does call 
> the function.  The fundtion definition is included earlier in the main 
> script. 
> 
> In fact, I have been able to get the script to work with the function 
> call included by surrounding the contents of the included file with 
> <?php ?> tags. 
> 
> I found something in a book somehwere that said php does not interpret 
> php calls from within the content of included files unless these tags 
> are present in the body of the file. 
> 
> Now I'm trying to get a while loop to act on some included html. 
> 
> Maybe someone can point me to some good ideas or good resources for 
> templating.  What I'm trying to do here is to separate out my html code 
> from the interactive php part of the script.  This gets complicated 
> where there are php elements, like the options tag shown above, spread 
> aroundin the html.  But leaving it all in the main php script makes it 
> hard to read easily and having it separated out makes it easier to make 
> modifications in the html without impacting the scripting parts. 
> 
> Any suggestions? 
> 
> --Kenoli 
>
 
  
Navigation:
[Reply to this message] 
 |