RE: [PHP] determining which link was clicked
| From: | Moose Magin | Date: | Wed, 14 Aug 2002 10:52:56 +0000 |
| Subject: | RE: [PHP] determining which link was clicked | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112508@lists.php.net to get a copy of this message | ||
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