View Full Version : Sending variables accross multiple asp pages.
dvlnblk
06-11-2003, 02:16 PM
Hello all,
I have a record opened from one page using the WHERE id =...
I want to pass variables to other pages without using a form. How can I do this? Thanks a million, Dvlnblk
dvlnblk
06-11-2003, 02:19 PM
I think I can post them directly into the url and get them from the next page. And then do a where ID ='VariableFromUrlFromPreviousPage'
RIght? Dvl
Angelika
06-11-2003, 02:36 PM
From first page you can write:
<a href="test.asp?ID=1">
Or
<a href="test.asp?ID=<%=var_ID%>">
On second page:
id=Request.QueryString("ID")
So,
strSQL="Select * from table_name "
strSQL=strSQL + "WHERE id ="&ID&" "
vBulletin v3.0.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.