Links in the HTML and PHP

I want to differenciate between the links in the HTML code when I click in the Page 1 , It should excuted the first condition in the php file ., and when I click in the second link should excute the second condition . Finally , when I click in the third link it should excuted the third condition .

Please have a look in the HTML and PHP files . I used the id attribute to deffrenciate between them .

I have written this code , but when It calls the php file .

Page 1

Page 2

Page 3

---------------------- php file <?php if (id=="pag1") echo "Have Page 1 a nice weekend!"; elseif ($id=="pag2") echo "Have Page 2 a nice Sunday!"; else echo "Have Page 33 a nice day!"; ?>


Sponsor our Newsletter | Privacy Policy | Terms of Service