parameter within a link

Results 1 to 2 of 2

Thread: parameter within a link

  1. #1
    Join Date
    Dec 1969

    Default parameter within a link

    I would like to show on a page the products as links so when a user clicks on that link to get details about that products.<BR><BR>So my question is how to store the ProductID within the link (I hope it’s the right term) and pass it as a parameter so the page opens only with the records that match this parameter.<BR>

  2. #2
    Medieval Dude Guest

    Default RE: parameter within a link

    On yer first page, make a SQL statement that finds all ProductID&#039;s within yer database. Then loop through all yer records, setting up links like this:<BR><BR>&#060;a href="detailpage.asp?ProductID=&#060;%=rs("Product ID")%&#062;"&#062;&#060;%=rs("ProductID")%&#062;&# 060;/a&#062;<BR><BR>On yer detailpage.asp, run yer query on yer database using request.querystring("ProductID"). <BR>Easy as falling into the moat.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts