Hi,
I'm trying to create a page where clicking on a link will go to a php
page and pass it parameters so it can determine which link was
clicked. I don't want to use any client side scripting for this, so
making the link act as a submit button via javascript won't do.
Unfortunately, this isn't working. Here is the sample code.
First the page with the links:
<html>
<body>
<a href="dest.php?link=Link1">Link 1</a>
<a href="dest.php?link=Link2">Link 2</a>
</body>
</html>
And the php script:
<html>
<body>
<? if ($_GET['Link1'])
echo "Link 1 Clicked";
else
echo "Link 2 Clicked"; ?>
</body>
</html>
In the above script, also tried $_POST, but php is not picking up the
variables. What am I doing wrong?
Thanks.