Re: determining which link was clicked
| From: | Gui Guy | Date: | Wed, 14 Aug 2002 15:09:48 +0000 |
| Subject: | Re: determining which link was clicked | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112544@lists.php.net to get a copy of this message | ||
Thanks for your help
Thats what I am trying to do but the variable $content does not get over to
newpage.php
----- Original Message -----
From: "Moose Magin" <mmagin@moose.homelinux.org>
To: "Gui Guy" <gui_guy@hotmail.com>
Cc: <php-general@lists.php.net>
Sent: Wednesday, August 14, 2002 3:52 AM
Subject: RE: [PHP] determining which link was clicked
> If I understand what you're trying to do, just put an identifier in the
url,
> and on the page you link to, use an if statement to display the part you
> want.
>
> eg
>
> <a href='newpage.php?content=emailform'>email form</a><br />
> <a href='newpage.php?content=forum'>Forum</a>
>
> and on the 'newpage.php'
>
> if($content == "emailform") {
> //Put your stuff to be displayed here
>
> }
> elseif ($content == "forum") {
> //Again, more stuff to be displayed
> }
>
> And so on ;)
>
>
>
> -----Original Message-----
> From: Gui Guy [mailto:gui_guy@hotmail.com]
> Sent: Wednesday, 14 August 2002 10:08 AM
> To: php-general@lists.php.net
> Subject: [PHP] determining which link was clicked
>
>
> if I have a page full of links and I want to generate another page. The
> contents of the new page will depend on the link I click.
> How can I determine which link was clicked?
>
> Thanks.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>