Re: Conditional anchor href value
| From: | Chris Shiflett | Date: | Wed, 03 Dec 2003 03:35:26 +0000 |
| Subject: | Re: Conditional anchor href value | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171628@lists.php.net to get a copy of this message | ||
--- Eric Blanpied <lists@blanpied.net> wrote:
> Still the js approach has been closest to what we need: the php script
> puts all the possible links from that card into the page, and then the
> js function uses the correct one.
>
> Does anyone have any advice?
Let PHP choose the correct one?
Maybe something like this will work:
<a href="foo.php?bar=<? echo $bar; ?>">Click here</a>
Then, you can let PHP choose what the appropriate value of bar should be.
Show us some code, and I'm sure we can give you more specific examples.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/