This is a discussion on Hyperlink modified dynamically within the PHP Language forums, part of the PHP Programming Forums category; I want a Hyperlink that modifies dynamically the target after every click. The link text/gif should be permanent, but ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I want a Hyperlink that modifies dynamically the target after every click.
The link text/gif should be permanent, but the link target should be taken from a dynamic file/table in the server, and modified following every click by any user. Does PHP support that? Thanks Jack |
|
|||
|
On Wed, 15 Aug 2007 08:56:16 +0200, Jack <Jack@lack.net.il> wrote:
> I want a Hyperlink that modifies dynamically the target after every > click. > The link text/gif should be permanent, but the link target should be > taken > from a dynamic file/table in the server, and modified following every > click > by any user. > Does PHP support that? Only if you're willing to reload the whole page, else you're stuck with javascript. -- Rik Wasmus |
|
|||
|
On 15.08.2007 08:56 Jack wrote:
> I want a Hyperlink that modifies dynamically the target after every click. > The link text/gif should be permanent, but the link target should be taken > from a dynamic file/table in the server, and modified following every click > by any user. > Does PHP support that? No, php has no idea on what a 'click' is. -- gosha bine makrell ~ http://www.tagarga.com/blok/makrell php done right ;) http://code.google.com/p/pihipi |
|
|||
|
<comp.lang.php>
<Jack> <Wed, 15 Aug 2007 08:56:16 +0200> <f9u4k2$5c0$1@news2.netvision.net.il> > I want a Hyperlink that modifies dynamically the target after every click. > The link text/gif should be permanent, but the link target should be taken > from a dynamic file/table in the server, and modified following every click > by any user. > Does PHP support that? > Yes - just grab the link from the file before the page is displayed . -- (c) The Amazing Krustov |
|
|||
|
"Krustov" <me@privacy.net> wrote in message
news:MPG.212ce669ae59c60a98aba2@news.newsreader.co m... > <comp.lang.php> > <Jack> > <Wed, 15 Aug 2007 08:56:16 +0200> > <f9u4k2$5c0$1@news2.netvision.net.il> > >> I want a Hyperlink that modifies dynamically the target after every >> click. >> The link text/gif should be permanent, but the link target should be >> taken >> from a dynamic file/table in the server, and modified following every >> click >> by any user. >> Does PHP support that? >> > > Yes - just grab the link from the file before the page is displayed . > > > -- > (c) The Amazing Krustov ^^ No, that is if the page reloads, which it doesn't. If I were you, I would go with a JavaScript function that dynamically loads the PHP file, checks the values of the link against it, and then changes the link. Matt |