Inserting Records into Access from HTML

The final step is to create an HTML page through which you can add data to your database. JavaScript plays the role of checking your data before submitting it. First, you need to create your web page for data entry, and then you need to create your ASP page to send the data to your Access file on the server. (After you add your data, you can use the script in the previous section to read it and make sure that it’s all there.)

addRecords.html
<html> 
<head> 
<style type="text/css"> 
body {
      font-family:verdana; 
      font-size:11pt; 
      font-weight:bold; 
      background-color:ffabab; 
      } 
#myText {color:ff2626; background-color:black} 
</style> 
<script language="JavaScript"> 
function verify() { var flag=0; dv=document.reporter; ...

Get JavaScript Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.