Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query String

Status
Not open for further replies.

aspmonster

IS-IT--Management
Dec 11, 2003
25
US
How do you pass mulitple data using a Query String..
Example -
If this is hyperlink to the next page which is supposed to carry/pass the data...
Right now I know how to carry one data/variable..but I want to pass more than one...

<td><A href=&quot;test.asp?id1= <%=rs(&quot;Company&quot;)%>&quot;><%=rs(&quot;Company&quot;)%></a></td>

I want to take all these data below also along with the hyperlink (Querystring).
<td><b><%Response.Write(rs(&quot;Customer#&quot;))%></td>
<td><b><%Response.Write(rs(&quot;Funded_Amount&quot;))%></td>
<td><b><%Response.Write(rs(&quot;NBDM_Name&quot;))%></td>

Please help...

 
querystrings in general are passed via the url by seperation of a &

here's the general format

page.asp?name=value&name=value

_____________________________________________________________________
onpnt2.gif

Hakuna matata!!
 
Does this mean..I have to write my code like this
================
<A href=&quot;test.asp?id1= <%=rs(&quot;Company&quot;)%>& id2=<%=rs(&quot;Company_01&quot;)%>&quot;><%=rs(&quot;Company&quot;)%></a>

================

Please confirm..
Thanks..
 
y - that looks ok

You need to seperate each name / value pairing with an ampersand (&) and an equals sign between the name and value

so it would read

test.asp?id1=what&id2=where&id3=why

etc
 
simonchristieis..
Looks like its working..
Thanks..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top