php links?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
Romantik
New php-forum User
New php-forum User
Posts: 67
Joined: Mon Feb 24, 2003 2:55 am
Location: ../Ukraine/Kherson
Contact:

Post by Romantik » Sat Mar 29, 2003 4:41 am


sleepingdanny
New php-forum User
New php-forum User
Posts: 13
Joined: Mon Mar 17, 2003 6:38 am

Post by sleepingdanny » Sat Mar 29, 2003 4:49 am

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 >)

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests