syntax error

Results 1 to 2 of 2

Thread: syntax error

  1. #1
    Join Date
    Dec 1969

    Default syntax error

    I got this code from an article here called &#039;simple authentication, and this code is used to send people to the page they came from, but it keeps giving a syntax error and i just don&#039;t see what it is:<BR><BR>&#060;% if session("ID") &#060;&#062; "oklog" then<BR> response.redirect "login.asp?" &<BR> Server.UrlEncode(Request.ServerVariables("SCRIPT_N AME"))<BR>end if %&#062;<BR><BR><BR>Error Type:<BR>Microsoft VBScript compilation (0x800A03EA)<BR>Syntax error<BR>/CCIeper/Pagprotect.asp, line 2, column 32

  2. #2
    Join Date
    Dec 1969

    Default RE: syntax error

    End of line is termination in vbs.<BR><BR>Try<BR><BR>response.redirect "login.asp?" & _<BR>Server.UrlEncode(Request.ServerVariables("SCR IPT_NAME"))<BR><BR>Or move the Server... onto the same line.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts