I've been trying to look for some information on this for a while, but I can't find exactly the commands i'm looking for.
The page I'm working with right now uses globals to fetch a separate HTML page and plop it right into the appropriate <div>. For instance, the address bar reads:
".../index.php?id=photo"
and magically, there is the photography page, displayed correctly - hooray!
With that background, i'm wondering this. If the page loaded (using the include command) is photo.html, and i have a specified set of links to place in another div, that go with the photo page, is there a way to write those links and the page data all into one file?
i've tried storing the link data in a string at the top of photo.html, but the <div> the LINKS should appear in occurs before the page content <div> in index.php.
what it seems would work well is if I could find a way to write the beginning of my photo.html file like this:
PHOTO.html
<!--
<a href='#' class='sidenav'>Alumni Organizations</a>
<a href='#' class='sidenav'>Board of Directors</a>
<a href='#' class='sidenav'>Events</a>
<a href='#' class='sidenav'>Gifts</a>
<a href='#' class='sidenav'>Information Change</a>
<a href='#' class='sidenav'>I've Got News</a>
<a href='#' class='sidenav'>Yearbooks</a>
<a href='#' class='sidenav'>'P' Club</a>
-->
If there was then a way, with my index.php file, i could use 'fread' or 'fopen' to read that data and spit it back out in the appropriate div, that would be great.
i will keep tryin gand notify if i fix the problem