HTML
  Home arrow HTML arrow Page 3 - Building Single Row Database Forms with HT...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Building Single Row Database Forms with HTML
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2008-07-16

    Table of Contents:
  • Building Single Row Database Forms with HTML
  • Sending Changes to Server Database
  • The Form Code
  • The Nature of the Recordset
  • The disableButtons(selectedButtons) Function

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building Single Row Database Forms with HTML - The Form Code


    (Page 3 of 5 )

    The INPUT elements and buttons each have an ID. The ID of the Transmitted Table is “TransmittedTable.” The ID of the INPUT element that receives the row position of the recordset is "RowPosition." The ID of the INPUT element that receives the total number of rows is “TNumberRows.” The basic code for the form (as seen by the user) is as follows:


    <table id="CT1">

    <tr>

    <td colspan="2">

    <b>Employee Information</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Row <input type="text" id="RowPosition"> of <input type="text" id="TNumberRows">

    </td>

    </tr>

    <tr>

    <td width="100">

    <br />

    ID

    </td>

    <td>

    <br />

    <input type="text" id="EI0">

    </td>

    </tr>

    <tr>

    <td width="100">

    <br />

    Name

    </td>

    <td>

    <br />

    <input type="text" id="EI1">

    </td>

    </tr>

    <tr>

    <td width="100">

    <br />

    Department

    </td>

    <td>

    <br />

    <input type="text" id="EI2">

    </td>

    </tr>

    <tr>

    <td width="100">

    <br />

    Job

    </td>

    <td>

    <br />

    <input type="text" id="EI3">

    </td>

    </tr>

    <tr>

    <td width="100">

    <br />

    Years

    </td>

    <td>

    <br />

    <input type="text" id="EI4">

    </td>

    </tr>

    <tr>

    <td width="100">

    <br />

    Salary ($)

    </td>

    <td>

    <br />

    <input type="text" id="EI5">

    </td>

    </tr>

    <tr>

    <td colspan="2">

    <br />

    <button type="button" id="A1"> Add </button>&nbsp;&nbsp;&nbsp;

    <button type="button" id="E1"> Edit </button>&nbsp;&nbsp;&nbsp;

    <button type="button" id="D1"> Delete </button>&nbsp;&nbsp;&nbsp;

    <button type="button" id="C1"> Clear </button>&nbsp;&nbsp;&nbsp;

    <button type="button" id="F1"> Find </button>&nbsp;&nbsp;&nbsp;<br /><br />

    <form action="http://databaseSite.com/programFile.exe" method="post">

    <button type="button" id="So1"> Sort </button>&nbsp;&nbsp;&nbsp;

    <button type="button" id="S1" type="submit"> Save </button>&nbsp;&nbsp;&nbsp;<br /><br />

    <button type="button" id="SFA1"> &nbsp;|&lt;&lt;&nbsp; </button>

    <button type="button" id="SP1"> &nbsp;&lt;&lt;&nbsp; </button>

    <button type="button" id="SN1"> &nbsp;&gt;&gt;&nbsp; </button>

    <button type="button" id="SL1"> &nbsp;&gt;&gt;|&nbsp;</button>

     

    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

    <button type="button" id="Do1" type="submit"> Done </button>

     

    <!-- Transmitted Table -->

    <table id="TransmittedTable">

    </table>

    </form>

    </td>

    </tr>

    </table>


    More HTML Articles
    More By Chrysanthus Forcha


       · The story continues.Chrys
     

    HTML ARTICLES

    - Using a 3D HTML Table as a Recordset
    - Building a 3D HTML Table
    - Maximizing and Restoring HTML Images: Layer ...
    - Completing Construction of a Database Form w...
    - Maximizing and Restoring Images in a Tabular...
    - Building the Recordset for an HTML Database ...
    - Laying Out a Database Form with HTML
    - Tabular Database Form Functions with HTML
    - Tabular Database Forms with HTML
    - Using the Find Functions for HTML Database F...
    - Sorting for Database Forms with HTML
    - Edit and Other Database Form Functions with ...
    - More Database Form Functions with HTML
    - Database Form Functions with HTML
    - Using the HTML Table Element as a Recordset






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT