how to pass variable and an internal link
| From: | Jena | Date: | Wed, 20 Feb 2002 20:11:18 +0000 |
| Subject: | how to pass variable and an internal link | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85577@lists.php.net to get a copy of this message | ||
Hi
I've encountered a little (I hope) problem
I can put an anchor on a page to create an internal link writing
<a name="my_anchor"> and then reach it with a normal link writing
echo "<a href=\"page.php#my_anchor\">go to my_anchor</a>";
but to me is necessary to add a variabale to this link
usually I write somthing like this:
echo "<a href=\"page.php?variable=" . $my_variable . "\">go
to</a>";
how can I pass either the internal anchor and the variable in the url?
I tried in many ways
echo "<a href=\"page.php#my_anchor?variable=" . $my_variable . "\">go
to</a>";
echo "<a href=\"page.php?variable=" . $my_variable . "#my_anchor\">go
to</a>";
but nothing to do;
can someone help me?
Many thank in advance
Sergio