By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,648 Members | 1,615 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,648 IT Pros & Developers. It's quick & easy.

Knowing which link was clicked

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
mr******@hotmail.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=downloadable 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 discussion thread is closed

Replies have been disabled for this discussion.