Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Response.redirect
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Title:
Response.redirect
Miscellaneous
Thread ID:
00733476
Message ID:
00733476
Views:
55
Hi! this command:

Response.Redirect([http://localhost/bermitopia/FORUM/default.asp]) don't work in my app

here is the complete code:

FUNCTION Process
THIS.InitSession()
Session = THIS.oSession
Request = THIS.oRequest
Response = THIS.oResponse
IF !THIS.Login()
RETURN .F.
ENDIF

DODEFAULT()

RETURN .T.
ENDFUNC


FUNCTION Login()
IF !EMPTY(Session.GetSessionVar("Username"))
RETURN .T.
ENDIF
pcErrorMsg = ""
lcUsername = Request.Form("UserName")
lcPassword = Request.Form("Password")
IF !EMPTY(lcUsername)
IF NOT goAPP.RegisterUser(lcUserName, ;
lcPassword)
pcErrorMsg = "Invalid Login"
ELSE
Session.SetSessionVar("Username",lcUserName)
Response.Redirect[http://localhost/bermitopia/FORUM/default.asp RETURN .T.
ENDIF
ENDIF
ENDFUNC


i need when the user is ok change to another page.

Best Regards
Next
Reply
Map
View

Click here to load this message in the networking platform