View Single Post
Old 03-09-2006, 05:42 AM   #5 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 733
DJMaze is on a distinguished road
Quote:
Originally Posted by ChefFrank
If I follow this correctly, when I load index.php initally, there's no parameter being passed, so the isset($_GET('recipe') should be false, and I should drop down to the include on line 26, which I do - and the page loads fine. Now, if I click on one of the menu items, I should get a match someplace . . .

7 <a href="index.php?irishcoffee">Irish Coffee</a><br/>
8 <a href="index.php?lambmintsauce">Lamb with Mint Sauce</a><br/>
9 <a href="index.php?rhubarbcrunch">Rhubarb Crunch</a><br/>
not "index.php?irishcoffee" but "index.php?page=irishcoffee"

$_GET uses a key and a value (index.php?key=value).
PHP Code:
$_GET['key'] = 'value'
there's also a way to only use "index.php?irishcoffee" but just keep it simple for now.
DJMaze is offline   Reply With Quote