I have "copied" the html for a logon screen webpage. It works great and can access the database with the usernames and passwords. However, when entering data for the login, one cannot backspace, if you make an error you must highlight and retype. I believe the code is this <input name="UID" type="text" size="20"> is there some way to adjust this/add to it to allow for backspace?

There is nothing wrong with the piece of code that you have provided. This code does not restrict backspaces. Please provide more insight into the issue.

Okay, here is the complete code, see if you can see the problem. It's a bother.. Thanks!

<% @language="vbscript" %>
<!--#include virtual="/logon/_private/logon.inc"-->
<%
  ' Was this page posted to?
  If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
    ' If so, check the username/password that was entered.
    If ComparePassword(Request("UID"),Request("PWD")) Then
      ' If comparison was good, store the user name...
      Session("UID") = Request("UID")
      ' ...and redirect back to the original page.
      Response.Redirect Session("REFERRER")
    End If
  End If
%>
<html>
<head><title>Logon Page</title>
<style>
body  { font-family: arial, helvetica }
table { background-color: #000066; font-size: 9pt; padding: 3px }
td    { color: #000000; background-color: #000066; border-width: 0px }
th    { color: #ffffff; background-color: #000066; border-width: 0px }
</style>
<meta name="Microsoft Theme" content="ripple 1011">
</head>
<body>
<h3 align="center">&#xa0;</h3>
<div align="center"><center>
<form action="<%=LOGON_PAGE%>" method="POST">
<table border="2" cellpadding="2" cellspacing="2">
  <tr>
    <th colspan="4" align="left">
    <p align="center"><i><font size="3">Enter User Name and Password</font></i></th>
  </tr>
  <tr>
    <td>&#xa0;</td>
    <td colspan="2" align="left"><font color="#FFFF00">Please type your user name and password.</font></td>
    <td>&#xa0;</td>
  </tr>
  <tr>
    <td>&#xa0;</td>
    <td align="left"><font color="#FFFF00">Site</font></td>
    <td align="left"><font color="#FFFF00"><%=Request.ServerVariables("SERVER_NAME")%> &#xa0;</font></td>
    <td>&#xa0;</td>
  </tr>
  <tr>
    <td>&#xa0;</td>
    <td align="left"><font color="#FFFF00">User Name</font></td>
    <td align="left"><input name="UID" type="text" size="20"></td>
    <td>&#xa0;</td>
  </tr>
  <tr>
    <td>&#xa0;</td>
    <td align="left"><font color="#FFFF00">Password</font></td>
    <td align="left"><input name="PWD" type="password" size="20"></td>
    <td>&#xa0;</td>
  </tr>
  <tr>
    <td height="32">&#xa0;</td>
    <td colspan="2" align="center" height="32"><input type="submit" value="LOGON"></td>
    <td height="32">&#xa0;</td>
  </tr>
</table>
</form>
</center></div>
</body>
</html>

The html portion of the code does not seem to contain any problem that might not allow a backspace. May be I am not getting you problem right. Is it possible to show a demo of the problem?

If you have a script grabbing the individual characters from the keyboard, it also has to grab the backspace and remove one character from the buffer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.