php links?

  • Thread starter Thread starter Anonymous
  • Start date Start date
Its very easy to do :!: :arrow:
Lets say your site URL is: http://www.site.com/index.php

<?
if($id=="1"){
echo "Content";
}
esleif($id=="2"){
echo "Different Content";
}
// ......
?>

This code should be placed in the index.php file and then you make a link to "http://www.site.com/index.php?id=1" or to "http://www.site.com/index.php?id=2" and it will echo the content that you added :P

(< a href="http://www.site.com/index.php?id=1" >1< /a >)
 
Back
Top