RE: [PHP] Reading URL is changed
| From: | Vail, Warren | Date: | Sat, 20 Sep 2003 00:32:58 +0000 |
| Subject: | RE: [PHP] Reading URL is changed | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163251@lists.php.net to get a copy of this message | ||
Not sure if this is what you are looking for, but have you tried;
<a href = "this.php?L=1stlink">First Link</a>
<a href= "this.php?L=2ndlink">Second Link</a>
and then in this.php
$link = $_GET["L"];
Warren Vail
-----Original Message-----
From: Dan J. Rychlik [mailto:drychlik@tcsconsult.com]
Sent: Friday, September 19, 2003 5:11 PM
To: php-general@lists.php.net
Subject: [PHP] Reading URL is changed
I am trying to figure out the best way to accomplish this task. I have one file that performs a
certain amount of functions based on a user link choice. All the links point to the same document.
I know I need a control structure that reads what link was read but Im not sure how to do this.
for ex.
<a href = "this.php">First Link</a>
<a href= "this.php">Second Link</a>
Im cant figure out how to read "First Link" in php so that I can execute the needed
function. Has anyone accomplished this?
Thanks so much in advance,
-Dan