Posted by kenoli on 05/29/06 19:07
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]
|