Home arrow HTML arrow Building Single Row Database Forms with HTML

Building Single Row Database Forms with HTML

Welcome to the second chapter of a thirteen part series about creating database forms with HTML. In this article, we will continue our discussion on single-row forms and explain how to send changes to the server database. We will also go over the recordset and the common functions used to manipulate the corresponding form.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 7
July 16, 2008
  1. · Building Single Row Database Forms with HTML
  2. · Sending Changes to Server Database
  3. · The Form Code
  4. · The Nature of the Recordset
  5. · The disableButtons(selectedButtons) Function

print this article

Building Single Row Database Forms with HTML
(Page 1 of 5 )

The Controls

As I said in part I, the web page form is produced at the server and sent to the client when he clicks a web link at his computer.

Here we have to distinguish between the form as seen by the user and the HTML FORM element. The form as seen by the user has all the controls, while the HTML FORM element does not have all the controls (see explanation below).

This is the form as seen by the user:


Fig.1. Single-Row Form

The controls are in an HTML TABLE element. The TABLE element is given a border with a width of 2px. It is good to put the controls in a block-level element. This is for convenience. You can then give the assembly of controls a common style (background) and address (manipulate) all of them as a group. The fields of the form (as seen by the user) are HTML INPUT elements and the buttons are HTML BUTTON elements. The HTML INPUT elements are used to hold a row (record) of the recordset.

The first row of the recordset is row number 1. The second row is row number 2. The third row is row number 3 and so on. The row number of the recordset row, which is shown on the form, is called the Row Position in this series. It has other names in other circles. The row position and the total number of rows are each held by an HTML INPUT element at the top-right area of the form. However, these INPUT elements are made read-only and are given zero-width borders, so they do not appear as input elements. I made them like that just for the purpose of “taste.”

blog comments powered by Disqus

- Does HTML5 Need a Main Element?
- Revisiting the HTML5 vs. Native Debate
- HTML5: Not for Phone Apps?
- HTML5 or Native?
- Job Hunting? Freelancer.com Lists This Quart...
- HTML5 in the News
- Report: HTML5 Mobile Performance Lags
- The Top HTML5 Audio Players
- Top HTML5 Video Tutorials
- HTML5: Reasons to Learn and Use It
- More of the Top Tutorials for HTML5 Forms
- MobileAppWizard Releases HTML5 App Builder
- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials