I have a section of a site set up in 'wrapper' + 'document' fashion. In the wrapper, or main (main.php), file, I have the following:
<?php $page=$doc.".php"; include("$page"); ?>
Then I create a new (new.php) document and point to it like so:
<a href="?doc=new">
This is efficient b/c it allows my 'new.php' document to reside within my 'main.php' wrapper, which never has to be changed each time I create yet another new1.php, new2.php, etc. 'main.php' retains my styles, menus, headers, footers, etc.
NOW.. this works great but apparently doesn't work in NS4x or Opera 6. In both of those browsers, the new.php file doesn't append itself onto the wrapper file ..
so instead of :
site.com/main.php?doc=new
i get :
site.com/?doc=new
(which, of course, breaks)
Now, I don't care so much about NS4 since trying to support that browser for every site I made would add 10 years to my life, but it'd be nice to have it work in Opera 6, as 6 is still fairly recent. Has anyone ever had to deal with this problem? The site in question is here if anyone is interested in seeing a real-world example:
http://lisamcpherson.com/docs_a.php?doc=a_main
thanks in advance..
tikk