HELP: Returning a value afteer clicking a link?

J

John

Hello all,
I need to be able to return a value to an asp page after clicking on a
hyperlink.
Q1....Is there any html attribute for the <a> tag which will do this?
Q2...If not, could I use 'onclick' or 'onmousedown' mixed with some
asp...and if so, which is better suited?

If anyone has any ideas I would appreciate it.

TIA.
 
T

Thomas A. Rowe

You have to send the value when clicking the link, as querystring

ex. nextpage.asp?v=something

Then on nextpage.asp

<%
dim v
val = request.querystring("v")
%>

Then can use "val" however you need to.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
J

John

Thanks Thomas
Is the value returned a string or a number or is that up o me?

Thanks again.
 
T

Thomas A. Rowe

It is a string, which you can then convert to a number if needed, but that depends on how you will
be using it at that point.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Top