I agree with the above comments.
I would add the following to make you code more readable.
I have seen many people use
sql = "insert into Info (UserName, Email, PhoneNo,"
sql = sql & "Password) values"
sql = sql & "('"&Request.Form("uname")&"',"
sql = sql & " '"&Request.Form("email")&"',"
sql = sql & " '"&Request.Form("phoneno")&"',"
sql = sql & " '"&Request.Form("password")&"',)"
unfortunately there is a bug in
VB and string concat is leaking so this will if on a page that is not unloaded bloat your system. Also string concat takes time as
VB creates new strings each time.
I would write it the following way
sql = "insert into Info "&
"(UserName, Email, PhoneNo, Password) values " &_
"('"&Request.Form("uname")&"'," &_
" '"&Request.Form("email")&"'," &_
" '"&Request.Form("phoneno")&"'," &_
" '"&Request.Form("password")&"')"
The syntax error is the extra , on the last line after password