473,513 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hyperlink modified dynamically

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
Aug 15 '07 #1
4 1213
Rik
On Wed, 15 Aug 2007 08:56:16 +0200, Jack <Ja**@lack.net.ilwrote:
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
Aug 15 '07 #2
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
Aug 15 '07 #3
<comp.lang.php>
<Jack>
<Wed, 15 Aug 2007 08:56:16 +0200>
<f9**********@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
Aug 15 '07 #4
"Krustov" <me@privacy.netwrote in message
news:MP************************@news.newsreader.co m...
<comp.lang.php>
<Jack>
<Wed, 15 Aug 2007 08:56:16 +0200>
<f9**********@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

Aug 15 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2320
by: laura | last post by:
I am writing an intranet and want to be able to hyperlink to all files within a specific folder AND it's subfolders. Whilst I can hyperlink to the files in the specified folder AND I can also iterate through the subfolders and list them, for some reason I cannot hyperlink to the sub folders. I am writing this software at home using a computer...
0
550
by: Ryan Harvey | last post by:
Hi all, I have written a web user control that contains a repeater control. the ItemTemplate for this control is basically 6 Hyperlinks in a row, that are dynamically allocated one of 7 gif images as the ImageURL of the Hyperlink. When a load the page with the controls on it works fine, but sometimes the images are broken, but if i hit...
2
6746
by: Robson Carvalho Machado | last post by:
Dear friends, I'm dynamically creating a Hyperlink with spacer.gif as ImageURL that is an 1px transparent image only to determine link position, but as I create this link dynamically I could not set image width. This problem makes my link clickable only on its borders. When viewing HTML source I could see that spacer.gif has no width and...
2
1605
by: klynn | last post by:
I need to create a datagrid dynamically and add a hyperlink onto one of the columns. So the user sees that columns value and can click on it. But the hyperlink sends a value from another column (which is hidden in the datagrid). Whats the best way to do this?
4
4184
by: Tomek R. | last post by:
Hello ! This post does'nt regard column hyperlink. I just have single hyperlink and want to create it's NavigateUrl dynamically. This is my test page <form id="Form1" method="post" runat="server"> <asp:HyperLink id="MyHLink" NavigateUrl='<%# geturl("123456") %>'
10
1911
by: david | last post by:
Hi, all: I need a help from you about DataGrid control. I created a DataGrid, dg, in design view of .NET visual Stadio and use the builder to add a Hyperlink column to dg. I want to try to assign a column of URLs to this hyperlink column in programming way (ie., dynamically assignment). However, I can not find a way to continue doing it. ...
3
12343
by: sloesch | last post by:
I am working with VS.net 2003, framework 1.1, developing with VB.net, and ASP.net, and I would like to know how you can create a dynamic hyperlink on the fly to a document stored in a SQL database? I would like to create a VB.net function that would do this, and I found this class *System.Web.UI.WebControls.HyperLink*, but I can not find...
2
4988
by: SAL | last post by:
I would like to create a VB.net function, that builds a dynamic hyperlink using System.Web.UI.WebControls.HyperLink, but I can not find any examples on how to generate a dynamic hyperlink. Has anyone done this before? I do not want to dynamically create my hyperlink on an ASP page, but rather a behind the scenes link that a user can paste...
2
4671
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi, I am creating emails dynamically using C# and would like to place a hyperlink in the email body before sending it out. I added the text for what I thought was a hyperlink but the email just shows the entire text including the navigation URL where I would like it to show up as a clickable link but only display the portion of the hyperlink...
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7394
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7559
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7123
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.