Eivo Posted January 7, 2008 Share Posted January 7, 2008 I am pretty new to using VBScript in ASP, I usually use JavaScript, so this error I don't understand.Here is the error: Microsoft VBScript compilation error '800a0400'Expected statement/testing_grounds/gate.asp, line 3Option Explicit;^And the code:<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><% Option Explicit; %><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Site-Lite™</title> <link rel="stylesheet" type="text/css" href="sl_main.css" /> <style type="text/css"> a {color:#FFFFFF; text-decoration:underline;} #horizon {width:100%; height:1px; top:50%; overflow:visible; position:relative;} #container {width:990px; height:315px; margin-left:0px; top:-157px; position:relative;} #logo {background-image:url(sl_images/login_logo.gif); width:90px; height:315px; float:right} #right_box {width:445px; height:240px; padding-top:75px; background-color:#6ecff7; float:right; text-align:center;} #left_box {padding-left:130px; padding-top:120px; width:315px; height:195px; background-color:#6ecff7;} </style> </head> <body> <%' Retrieve and Condition Login Data Dim form_name, form_pass form_name = Trim(LCase(Request.Form("usernameFM"))) form_pass = Trim(LCase(Request.Form("passwordFM"))) If IsNull(form_pass) or IsNull(form_name) Then Response.Redirect("login.asp?wtp=1") End If Response.Write(form_name & " " & form_pass) %> </body></html> Any help is greatly appreciated.I should mention, that when I take out "<% Option Explicit %>" it works just fine.Thanks! Link to comment Share on other sites More sharing options...
justsomeguy Posted January 8, 2008 Share Posted January 8, 2008 Try moving it above the doctype (I'm not sure if there are restrictions on where it goes, probably not though) and definately remove the semicolon, VB doesn't use semicolons. Or logic. Or reason. Much like the dark side, anger, fear, and agression are the tools of VB. Link to comment Share on other sites More sharing options...
Eivo Posted January 10, 2008 Author Share Posted January 10, 2008 Moving it above the DOCTYPE worked......for some reason.Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.