On Fri, 19 Sep 2003 19:10:46 -0500
"Dan J. Rychlik" <[EMAIL PROTECTED]> wrote:

> 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

<a href = "this.php?action=first_link">First Link</a>
<a href= "this.php?action=second_link">Second Link</a>

... and then switch $_GET['action'].
____
Regards, Andu Novac

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to