querystring string problems

Results 1 to 2 of 2

Thread: querystring string problems

  1. #1
    Join Date
    Dec 1969

    Default querystring string problems

    :-)Hope im better at asp this time next year many thanks to bill,atrax,xanando for their help last year.<BR><BR><BR>&#039;Can anyone help please on page1.asp which works.<BR>&#039;however moredetails.asp isnt pulling records at all-any ideas thanks or articles <BR><BR>&#060;a href="moredetails.asp?id=&#060;%=rs("linkid")%&#06 2;"&#062; <BR><BR><BR>&#060;%<BR>Dim varlinkid<BR>varlinklid = request.querystring("linkid")<BR><BR>Dim rs, linkid, linkevent, <BR>Set rs = server.createobject("adodb.recordset")<BR><BR>sql = "SELECT link.linkevent FROM link WHERE link.linkid = " & varlinkid & ";"<BR>rs.Open sql,"dsn=mydsn"<BR>%&#062; <BR><BR><BR>&#060;%=rs("linkevent") %&#062;

  2. #2
    Join Date
    Dec 1969

    Default RE: querystring string problems

    varlinklid = request.querystring("linkid")<BR><BR>should be<BR>varlinklid = request.querystring("id")<BR><BR>as id is the variable you are using in your querystring eg<BR>&#060;a href="moredetails.asp?id=1"&#062; <BR>

Posting Permissions

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