Created
June 5, 2012 15:36
-
-
Save simkimsia/2875743 to your computer and use it in GitHub Desktop.
for learning GET params
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Define an array of character information | |
$characters = array( | |
'yakko' => array ( | |
'id' => 'yakkowarner', | |
'url' => 'characterview.php?id=yakkowarner', | |
'name' => 'Yakko Warner' | |
), | |
'wakko' => array ( | |
'id' => 'wakkowarner', | |
'url' => 'characterview.php?id=wakkowarner', | |
'name' => 'Wakko Warner' | |
), | |
'dot' => array ( | |
'id' => 'dotwarner', | |
'url' => 'characterview.php?id=dotwarner', | |
'name' => 'Dot Warner' | |
), | |
); | |
?><html> | |
<body> | |
<font size = "7"><big>List of characters : </big></font> | |
<p> | |
<ol> <!-- use this for numbered list --> | |
<?php foreach ($characters as $key => $character) :?> | |
<li><a href ="<?php echo $character['url']; ?>"><?php echo $character['name'];?></a></li> | |
<?php endforeach; ?> | |
</ol> | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment