Re: Problem getting included source code to work.



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

.



Relevant Pages

  • Re: How do we get there from here?
    ... server-side-scripted html. ... This is a simple example with very little php scripting. ... means that the version of the php pre-processor on your web server must ... >>> The browser never sees anything not sent to it by the script. ...
    (comp.databases.pick)
  • Re: how to run scripts after a page has already loaded and been sent to a users browser?
    ... > It's because PHP is a server side scripting language, ... > do stuff before you send stuff to user's web browser. ... As we've discussed on this newsgroup before, if a script starts ... that is after the last HTML is sent to a web browser. ...
    (alt.php)
  • Re: How do we get there from here?
    ... Unlike my dislike for PHP, my dislike for SQL is based on ... >>> up with at least html and php quite mixed into each other, ... Using a PHP script to send HTML ... code to a browser in no way taints that code. ...
    (comp.databases.pick)
  • Re: Form Data -> Variables or an Array?
    ... Forgive me I am a PHP newbie. ... I have a small script that enables me to ... I want to use the HTML formatted form ... variables or an array, so that I can call the data later in the same ...
    (comp.lang.php)
  • [Full-Disclosure] Multiple XSS vulnerabilites in PHPNuke
    ... Yes, more XSS in phpnuke... ... PHP-Nuke's rdf/rss parser doesn't strip html tags when parsing RSS files. ... strips <script> tags, it allows for events on tags. ...
    (Full-Disclosure)