Ok, I had this really long response ready, and I re-read your post to see wether I got all your questions, and I got confused
Let's try to narrow down the issues a little
index.php builds general page layout
plus 1 of 3 things (load $id.jpg, load $id.php, load brewerysplash.jpg) correct?
$id.php does what exactly? (and is it the same for every $id? i.e. brewery.php, stable.php, garage.php)
(does it just echo a single image, or does it create buttons, or other stuff?)
In order to try to answer some questions for you:
- Can you call $_REQUEST['id2'] from within included files: yes
- Can you call variables from index.php from within included files: yes
- Can you disguise $_REQUEST['id2'] as $_REQUEST['id']: NO, or at least you shouldn't (but you can pass $id to the included files...)
- Is it better to split the files or build one big index.php? I don't know
(see my next post)
Hope this will settle some questions, so we can get to the good stuff
