Hi moving on from a previous problem, I am trying to use the code below to pick up a username and build it into a URL as below, only problem is it does not work, it automatically goes to the notes.asp page, how do i stop it to pick up the username then go to the login page and go to the notes.asp if the field is blank.
Thanks
---------------------------------------------------------
Thanks
---------------------------------------------------------
Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
dim username
dim url
username = request.querystring("username")
%>
<%
if Len(username) < 1 then
URL = "[URL unfurl="true"]http://intranetuk1/notes.asp"[/URL]
response.redirect(url)
%>
<html>
<head>
<title>NotesMail Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="inputname" method="post" action="noteslogin.asp">
<input type="text" name="username" size="20">
<input type="submit" name="continue" value="submit">
</form>
<%
else
response.redirect("[URL unfurl="true"]http://uk01-s005/"[/URL] & username & ".nsf")
end if
%>
</body>
</html>