473,811 Members | 3,467 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Knowing which link was clicked

I have a page on a website with two downloadable files: an install, and
an update. I need to know which link (install or update) the user
clicks on so that two pages later, after reading a license agreement,
they are brought to the right file. I think what I basically need is
when they click on either the install or update link, pass in a
parameter/variable that can be used a few pages later that will allow
that page to know which file to give them.

It kind of looks like this:
a page with:
install link update link
\ /
license agreement page
|
download page

So, I want the download page to know what link was clicked, which in
turn would allow it know which file to serve. Hope this isn't to
convoluted!

Dec 28 '05 #1
1 1362
mr******@hotmai l.com wrote:
I have a page on a website with two downloadable files: an install, and
an update. I need to know which link (install or update) the user
clicks on so that two pages later, after reading a license agreement,
they are brought to the right file. I think what I basically need is
when they click on either the install or update link, pass in a
parameter/variable that can be used a few pages later that will allow
that page to know which file to give them.


Link to /license/?for=downloadab le or /license/?for=update

Then check the query string to generate the link at the bottom.

You /could/ do this with client side JavaScript, but since it is a pretty
essential part of the page, doing so isn't a good idea. This should be
handled server side, and the specifics depend on what your server supports.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Dec 28 '05 #2

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

Similar topics

1
2222
by: Bizt | last post by:
Hi, I would like to create a menu where the menu options were taken from an XML file. The reason is that I would be able to update the xml file (by simply adding new child nodes) after I uploaded new web pages. Each page would run the same PHP script to create the menu. As the xml file would supply every page, this would mean less time taken up when adding new pages. Below is an example of the xml file content:
1
13620
by: Mat | last post by:
How can I detect when a link has been clicked but the new page is still in the process of loading? The document.location.href property still displays the current location (understandably) not the one that's about to load. I have a page that reloads every 30 seconds in order to access live data. If a user clicks on a link just prior to the page reloading the reload takes precedence over the link click and this is annoying for the users....
4
1790
by: Newbie | last post by:
Is it possible to set up an event handler or something else so that when *any* link on the page is clicked it 'fires-up', executes some JS and then continues to process the link that was clicked? (Without having JS or 'onClick' added to each & every link?) I've looked everywhere but can't find out how, or if it's even possible via Javascript... Regards.
3
3507
by: Tim Streater | last post by:
I have, as it might be, this in a frame: <a href="mystuff.html">Click here</a> When I click the link, it loads mystuff.html into the frame, whereas what I want is to replace the whole window contents. How can I do this while still using a link? What I want in effect is for clicking to do: top.location.href = "mystuff.html"
0
1675
by: RSB | last post by:
Hi Every one, i am trying to create a UserControl and i am passing a Array of strings to it. Now based on the Array elements i am creating the LinkButtons Dynamically. I am also passing a Event to this control and Lining the OnClick event of these LinkButtons to this Event. (Which works fine). Now the Thing which i cannot achieve is i want to Change the Back Color of the Clicked to LinkButton To a different color and i also don't want to...
3
2220
by: newcomsas | last post by:
Hello. I'm trying to solve a problem related to JS and CSS. I produced an HTML page with several links and buttuns. I then created a CSS file in order to display a yellow background when a link is clicked by users. UL.menu1 LI A:active{ BACKGROUND: yellow; COLOR: black Naturally, having acted on the A:active property, when a link is
7
1678
by: PGPS | last post by:
Hi, I want to know who all clicked a particular link (cgi-script) on any website. 1. Link points to my own webserver 2. Link can be sent anyway. Either emailed or posted on a site which needs login If emailed, then the email page which shows the link also has the users name. When clicked I want to obtain the name.
1
3682
by: Miroslav Stampar [MCSD.NET / Security+] | last post by:
I have a problem that is best described by following code: <a href="http://www.google.com" onclick="new Image().src=\'http:// www.example.com/process.cgi?p=1\'">Google</a> I want to call cgi script before a link is clicked. Upper example works as a standalone (AS IS), but... But, when I attach onclick event programmaticaly, clicked link loads to fast so image/CGI script doesn't have time to preload. Do you have
9
1976
by: newbiegalore | last post by:
Hello everyone :-) , Thanks to the gentle people on this group for helping me out with previous issues. :-D This time round I am facing what I perceive as a simple problem, which I have not found a simple solution for (obviously!). The problem: I need to pick up the URL in the address bar of a browser when a link is clicked What I have done: I have used,
0
9727
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10386
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10133
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9204
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6889
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4339
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3017
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.