thanks for the tip, i’ll have to try that.
just so i’m correctly following the bouncing ball… this approach would require a single line of php,
<?php require_once "my_code.php"; ?>
to be on every page that uses the master page.
whenever one of those pages is requested, the host would first fetch the
my_code.php file to test if it is the case of
the_PRG_page.html being served up, or not (you call it
index.php in your example)
if NOT, then
break; and continue serving the requested page,
if IS, then run
a.php which is where i would keep the POST part of the PRG. This is the part that normally sits above the html on my child page, and is regularly erased whenever i update the master page.
at the end of
a.php, the server would then “fall thru” to serve up
the_PRG_page.html just as if the block of
a.php code had been part of the page the whole time…
if true, that seems like it would work and save me from having to manually paste the code back above the
<!DOCTYPE html> every time i update the master page.
i can probably figure this out on my own, but since you are feeling generous …
how would i figure out the page file name from the request info?
do i need to parse $_SERVER[‘HTTP_HOST’] to find the string?
or is there a better way?