PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Im using index with require header footer for my site .. Im lost on how I can put data in the body of the index page (home) that doesnt show when other links are visited ..?
I want to add data into the body of http://www.domain.com .. But in not sure how to get data into there without it displaying on all pages as you move around the links ..
Not sure how to explain it better that that really ..
require 'header.php';
switch ($_REQUEST['pages']) {
case 'contact_us':
require 'contact_us.php';
break;
case 'about_us':
require 'about_us.php';
break;
default:
echo "this is when user a goes to http://www.yourdomain.com";
}
require 'footer.php';
PS: i really like the php highlight. I believe fedy wrote this part... very nice. First phpbb forums with php code i believe (sorry, it's offtopic)