Home arrow HTML arrow Page 3 - Building Single Row Database Forms with HTML
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 / 4
July 16, 2008
TABLE OF CONTENTS:
  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
SEARCH DEVARTICLES

TOOLS YOU CAN USE

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>



blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



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