I'm using ASP / VBScript. The application is a simple library, how can I
store the username so that I don't have to pass it between pages?
At the moment it's passed to the authentication page as a postfield value
and then passed around as an entry in the hyperlink string e.g <a
href='search.asp?Username=Test'>Search</a>
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:%2****************@TK2MSFTNGP11.phx.gbl...
sql = "Select * from orders where username='" & Username & "'"
Ray at home
"MC" <maxcoppin@-don't-send-me-any-spam-btinternet.com> wrote in message
news:fn***************@newsfe1-gui.server.ntli.net... Not sure if it changes anything but I'm trying to build the variable
into an SQL string e.g:
sql = "Select * from orders where username = $(Username)"
This code doesn't work but this is where i need the username variable!
"MC" <maxcoppin@-don't-send-me-any-spam-btinternet.com> wrote in message
news:Gk***************@newsfe1-gui.server.ntli.net... I'm trying to reference a username variable that is saved after the
user logs in. I can reference it using $(Username) in standard html parts
of the page but how do i use it in the script sections enclosed with <% %>
I'm sure this is simple but can't find it anywhere!!
Thanks in advance!