if statement - Get Session ID of a link and produce Dynamic page PHP -


what wanna create 2 hyperlinks , both links take them xx.php.

so want if clicks link 1 shows them echo "hello"; , if link 2 clicked shows echo "hi";

but both statements on something.php

regards,

then add code on called something.php

1)link 1

<a href="xxx.php?link=1>link 1 </a> 

2) link 2

<a href="xxx.php?link=2>link 2 </a> 

then on xxx.php

do this

<?php      if ($_get['link'] == "1") {         echo "hello";     }     if ($_get['link'] == "2") {         echo "hi";     } ?> 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -