Re: Problem getting included source code to work.
- From: "MS" <nospamplaesegr8t_ukuk@xxxxxxxxxxx>
- Date: Mon, 29 May 2006 19:03:56 +0100
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@xxxxxxx> wrote in message
news:1148918840.710562.6960@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- Problem getting included source code to work.
- From: kenoli
- Re: Problem getting included source code to work.
- From: MS
- Re: Problem getting included source code to work.
- From: kenoli
- Problem getting included source code to work.
- Prev by Date: Re: trying to find the Best php forum software...HELP!
- Next by Date: concat of ""
- Previous by thread: Re: Problem getting included source code to work.
- Next by thread: Re: Problem getting included source code to work.
- Index(es):
Relevant Pages
|