Pukka83
02-04-2009, 04:04 AM
these 2 files are in index.html & login.html
C:\Inetpub\wwwroot folder
when I tried to click submit in login.html, it returns: Can anyone help me?
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
--------------------------------------------------------------------------------
Technical Information (for support personnel)
Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/index.html, line 2, column 43
String uname = request.getParameter("name");
login.html
<htmL>
<body>
<font face="verdana,arial" size=-1>
<center><table cellpadding=2 cellspacing=0 border=0>
<tr><td bgcolor="blue"><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td bgcolor="blue" align=center style="padding:2;padding-bottom:4"><b><font size=-1 color="white">Enter your login and password</font></th></tr>
<tr><td bgcolor="white" style="padding:5"><br>
<form method="post" action="index.html">
<center><table>
<tr><td><font face="verdana,arial" size=-1>Login:</td><td><input type="text" name="name"></td></tr>
<tr><td><font face="verdana,arial" size=-1>Password:</td><td><input type="password" name="password"></td></tr>
<tr><td><font face="verdana,arial" size=-1> </td><td><font face="verdana,arial" size=-1>
<input type="submit" value="Submit"></td></tr>
</table></center>
</form>
</td></tr></table></td></tr></table>
</body>
</htmL>
index.html
<p><%
String uname = request.getParameter("name");
String pwd = request.getParameter("password");
%>
<html>
Welcome, your name is <%=uname%> <br>
your password is <%=pwd%>
</html>
C:\Inetpub\wwwroot folder
when I tried to click submit in login.html, it returns: Can anyone help me?
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
--------------------------------------------------------------------------------
Technical Information (for support personnel)
Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/index.html, line 2, column 43
String uname = request.getParameter("name");
login.html
<htmL>
<body>
<font face="verdana,arial" size=-1>
<center><table cellpadding=2 cellspacing=0 border=0>
<tr><td bgcolor="blue"><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td bgcolor="blue" align=center style="padding:2;padding-bottom:4"><b><font size=-1 color="white">Enter your login and password</font></th></tr>
<tr><td bgcolor="white" style="padding:5"><br>
<form method="post" action="index.html">
<center><table>
<tr><td><font face="verdana,arial" size=-1>Login:</td><td><input type="text" name="name"></td></tr>
<tr><td><font face="verdana,arial" size=-1>Password:</td><td><input type="password" name="password"></td></tr>
<tr><td><font face="verdana,arial" size=-1> </td><td><font face="verdana,arial" size=-1>
<input type="submit" value="Submit"></td></tr>
</table></center>
</form>
</td></tr></table></td></tr></table>
</body>
</htmL>
index.html
<p><%
String uname = request.getParameter("name");
String pwd = request.getParameter("password");
%>
<html>
Welcome, your name is <%=uname%> <br>
your password is <%=pwd%>
</html>