|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How can i have two query strings in my URL?
First things first, if one of my users login to my webpage i would like to be able to set a Query string like this..
page.asp?UserID= I can acomplish this that is not the problem the problem is being able to hold that string there wile my user browses thoughout the webpage. Is there an easy one command way to do this or will i be needing to do "IF" and "IF NOT" statements on every link they click like for e.g IF Session ("LogenIn") = True THEN <a href=""Page.asp?UserID=" & varUserID & """> IF NOT <a href=""Page.asp""> END IF response.wright("Click Here</a>") Please tell me there is an easyer way to hold this Query string throughout the website =]. My second question is how would i go about adding another Query string ONTOP of this one for e.g. www.somthing.com/index.asp?UserID=46&TopicID=12 thanks guys! |
|
#2
|
||||
|
||||
|
I wouldnt advise you to have that user id in querystring.
User can just change the id to see other member's pages!! You can have it in session. You'll have to check the session on each page though. |
|
#3
|
|||
|
|||
|
Quote:
The user ID is to hold all the data about that user, i run a session along with it. ("LogedIn") |
|
#4
|
|||
|
|||
|
Quote:
oops i get what u mean now, its posable to make the ID a session right? |
|
#5
|
||||
|
||||
|
Quote:
![]() |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > How can i have two query strings in my URL? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|