IceDragon Posted July 25, 2007 Share Posted July 25, 2007 can anyone help me with the code below.. what kind of a php code do i need to tell it what content to put in test_1.php?option=1 <div id="Content" align="center"> <div id="Title" align="center">= TESTs =</div> <br> <a href="test_1.php">= Test 1 =</a><br> <div id="Bar" align="center"></div> </div> <div id="Content" align="center"> <div id="Title" align="center">= Test 1 Options =</div> <br> <a href="test_1.php?option=1">Option 1 </a><br> <a href="test_1.php?option=2">Option 2 </a><br> <a href="test_1.php?option=3">Option 3 </a><br> <a href="test_1.php?option=4">Option 4 </a><br> <THIS is the content i want to appear when i open test_1.php?option=1> <div id="Bar" align="center"></div> </div> Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted July 25, 2007 Share Posted July 25, 2007 <THIS is the content i want to appear when i open test_1.php?option=1> <?php switch($_GET['option']) { case 1: // content for 1. break; case 2: // content for 2. break; .... default: // default content when no option is defined. } ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.