Hi guys
I'm having problems with the following error:
MS VBScript compilation (0x800A03F6) Expected End
/Samples/Access_mem/confirm.asp, line 143.
Pls help.
Here's the code
<%
Function ChkString(str)
str = replace(str, "<", "<", 1, -1, 1)
str = replace(str, ">", ">", 1, -1, 1)
ChkString = str
End Function
name = trim(ChkString(Request.form("name")))
email = trim(ChkString(Request.form("email")))
telNo = trim(ChkString(Request.form("telno")))
mobNo = trim(ChkString(Request.form("mobno")))
address = trim(ChkString(Request.form("address")))
City = trim(ChkString(Request.form("city")))
Country = trim(ChkString(Request.form("country")))
code = trim(ChkString(Request.form("code")))
Password = trim(ChkString(Request.form("password")))
confirmpassword = trim(ChkString(request.form("confirmpassword")))
if name = "" then
Response.Write "Please Enter Your name<br>"
else
if email = "" then
Response.Write "Please Enter valid email<br>"
else
if telno = "" then
Response.Write "Please Enter your telephone number<br>"
else
if mobno = "" then
Response.Write "Please Enter your mobile number<br>"
else
if address = "" then
Response.Write "Please Enter valid Address<br>"
else
if city = "" then
Response.Write "Please Enter City<br>"
else
if country = "" then
Response.Write "Please select country<br>"
else
if code = "" then
Response.Write "Please Enter zip code<br>"
else
if password = "" then
Response.Write "Please Enter password<br>"
else
if password <> confirmpassword then
Response.Write "Password does not match"
else
%>
<P align=center><i><b>Please verify if all your info you supplied is correct! If
not hit back and correct.</b></i></P>
<center>
<table border="1" cellpadding="2" cellspacing="3" width="400">
<tr>
<td >Name :</td>
<td ><%=name%> </td>
</tr>
<tr>
<td >E-mail :</td>
<td ><%=email%> </td>
</tr>
tr>
<td >telno :</td>
<td ><%=telno%> </td>
</tr>
tr>
<td >mobno :</td>
<td ><%=mobno%> </td>
</tr>
<tr>
<td >address :</td>
<td ><%=address%> </td>
</tr>
<tr>
<td >city :</td>
<td ><%=city%> </td>
</tr>
<tr>
<td >country :</td>
<td ><%=country%> </td>
</tr>
<tr>
<td >code :</td>
<td ><%=code%> </td>
</tr>
<tr>
<td >Password :</td>
<td ><%=password%> </td>
</tr>
<tr>
<td ></td>
<td >
<form action=addnewmember.asp method="post">
<input type=hidden name="name" value="<%=name%>">
<input type=hidden name="email" value="<%=email%>">
<input type=hidden name="telephone no" value="<%=telephoneno%>">
<input type=hidden name="mobno" value="<%=mobno%>">
<input type=hidden name="address" value="<%=address%>">
<input type=hidden name="city" value="<%=city%>">
<input type=hidden name="country" value="<%=country%>">
<input type=hidden name="zip" value="<%=zipcode%>">
<input type=hidden name="password" value="<%=password%>">
<input type=submit value="Confirm">
</form>
</td>
</tr>
</table>
</center>
<%
end if
end if
end if
end if
end if
end if
end if
end if
end if
%>
Thkx
