Adding value to text links for ASP process

They have: 80 posts

Joined: Feb 2003

I have a database , and i have constructed a simple A-Z table with text in them , what i want to do is be able to click on 'A' for instance and sent the value 'A' as a URL prarameter so that my result page will know that the search criteria is 'A' , this is useful as i will not have to construct 26 different result page if they click on 'B' for instance .

How do i go about this

any help would be appreciated

thx in advance Laughing out loud

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Do you mean something like:

<a href="YourPage.html?result=A">A</a>
<a href="YourPage.html?result=B">B</a>
<a href="YourPage.html?result=C">C</a>
'

Hope this helps you out,

Shakespeare: onclick || !(onclick)

He has: 52 posts

Joined: Feb 2003

dim query
query=request.querystring("result")
Select * from database where yourcolumnheader = '$result'

They have: 80 posts

Joined: Feb 2003

thx Jack , brilliant ... exactly what i was trying to do , lol , i just spent hour and a half creating 26 results page and now feel like a lemon , still .. at least its now corrected

They have: 80 posts

Joined: Feb 2003

thx forward , thx 4 reminding me about the columnheader , lol , i was stuck just now and read ur post and rearlise what i had done , cheerze

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

You're welcome Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.