Re: Reading URL is changed

From: Date: Sat, 20 Sep 2003 00:43:41 +0000
Subject: Re: Reading URL is changed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-163252@lists.php.net to get a copy of this message
On Fri, 19 Sep 2003 19:10:46 -0500 "Dan J. Rychlik" <drychlik@tcsconsult.com> 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

« previous php.general (#163252) next »