Hi, Is it possible to dynamically include a variable? To explain, I have a page formed of three different pieces of PHP, a header, footer, left side (options) and centre (the actual data). I include all these pieces into one php file (the left side - options one) and then the page is rendered to screen. What i want to do tho is vary the contents of the include statement dynamically, e.g.:
If the user clicks on option-->meals then the include statement has "include center_data_meals.php", if they then do suboption-->menu, I want the page to be re-rendered, but this time include "include center_data_menu.php" instead. Basically like frames, only done in PHP and rendered each time afresh.
Thanks.
Yum.
If the user clicks on option-->meals then the include statement has "include center_data_meals.php", if they then do suboption-->menu, I want the page to be re-rendered, but this time include "include center_data_menu.php" instead. Basically like frames, only done in PHP and rendered each time afresh.
Thanks.
Yum.