|
With this command, is it possible to use a declared variable a part of the url? i.e. Reponse.Redirect <%variable%>.htm
Thanks in advance
|
|
|
Medatron - absolutely.
or even
<%
url_start="http://"
url_end = "www.codetoad.com/"
Response.redirect url & url_end
%>
|
|
or
<%
url_end = "www.codetoad.com/"
Response.redirect "http://" & url_end
%>
|
|
|
|
|
I should have provided more information.
What I am trying to do is get a login page to redirect to another page that as part of the url has a value I pull from a database.
sql = "select Something from Database where Username = '" & LCase(username) & "'"
sql = sql & " and Password = '" & LCase(userpwd) & "'"
Then as part of the Response.Redirect URL insert the Something pulled from the database.
Does that make sense?
Thanks again.
<Added>
It would look like Response.Redirect http://www.them.com/something.htm
|
|
|
Same thing:
set myRecordSet = Database.Execute(sql)
set myURL = myRecordSet("something")
Response.Redirect("http://www.them.com/" & myURL & ".htm")
|
|
VBScript will resolve whatever you pass into Response.Redirect() into a string before it tries to move along.
|
|
|
What if you don't know what any part of the url will be except for the "http://" part?
|
|
|