Posts: 256
Location: Auckland, New Zealand
|
Way simply saying:
If the link is something like http://yourdomain.com/index.php?id=1
Then a simplified way (meaning poor security) would be:
PHP Code:
<?php if(isset($_GET['id']) && $_GET['id'] == 0 || !empty($_GET['id'])) { $id = $_GET['id']; switch($id) { case 1: echo '<p>Do Something Here</p>'; break; default: echo '<p>What Should I Do?</p>'; break; } } ?>
Where the switch statement handles what to do, however you can handle this how you like using your own means.
What it sounds like you're wanting is, the if statement and if it matches a certain value you would like to include('content_here.php'); which you should be able to make from what I've just given you.
Cheers,
MC
__________________
#------------------------------ signature---------------------------------------------------------------------------------#
Quote:
|
I am well recognised for what I don't do than what I do. Chores are just one of those things.
|
|