If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Passing multiple values in a query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-18-04, 22:24
breeze76 breeze76 is offline
Registered User
 
Join Date: Apr 2004
Posts: 75
Passing multiple values in a query

I am doing this:
<a href="users.asp?FIRM_ID=strFIRM_ID">

But I would like to send multiple values, something like this:
<a href="users.asp?FIRM_ID&FIRM_NAME=strFIRM_ID,FIRM_ NAME">

This does not work, but is there a way to do something like that?
Reply With Quote
  #2 (permalink)  
Old 10-18-04, 22:31
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
you want it more like this
Code:
<%
url="users.asp?FIRM_ID=" & strFIRM_ID & "&FIRM_NAME=" & strFIRM_NAME
%>
<a href="<%=url%>">
think that is about right. Basically you url needs to look like this...
<a href="users.asp?FIRM_ID=strFIRM_ID&FIRM_NAME=strFI RM_NAME">
Reply With Quote
  #3 (permalink)  
Old 10-19-04, 08:25
breeze76 breeze76 is offline
Registered User
 
Join Date: Apr 2004
Posts: 75
Quote:
Originally Posted by rokslide
you want it more like this
Code:
<%
url="users.asp?FIRM_ID=" & strFIRM_ID & "&FIRM_NAME=" & strFIRM_NAME
%>
<a href="<%=url%>">
think that is about right. Basically you url needs to look like this...
<a href="users.asp?FIRM_ID=strFIRM_ID&FIRM_NAME=strFI RM_NAME">
but I want to send two things.. the strFIRM_ID and strFIRM_NAME. How do I put them in there? I see how to do it in the quert string but how do I put them to send?

Thanks for the reply
Reply With Quote
  #4 (permalink)  
Old 10-19-04, 13:42
RhythmAddict RhythmAddict is offline
Registered User
 
Join Date: Dec 2003
Posts: 148
You will be sent to users.asp with the values on the querystring when the link is clicked..as rok illustrated

ie

strFIRMID = MyId
strFIRM_NAME =MyFirmname

"users.asp?FIRM_ID=MyID&FIRM_NAME=MyFIRM_NAME"
Reply With Quote
  #5 (permalink)  
Old 10-19-04, 14:15
breeze76 breeze76 is offline
Registered User
 
Join Date: Apr 2004
Posts: 75
Sorry I did not see the reply correctly.. guess that is what heppens when you get old..

Thanks again for the reply..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On