Home arrow HTML arrow Page 2 - Laying Out a Database Form with HTML
HTML

Laying Out a Database Form with HTML


In this tenth part of a thirteen-part series, we shall consider what changes when we use more text (a paragraph or more) and images with tabular forms. It can be difficult to do this with traditional database programming. Here it is easy because we have a recordset whose contents can be seen (the HTML table element with the default display property). All we need for an image in the recordset is a link to the image.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
September 17, 2008
TABLE OF CONTENTS:
  1. · Laying Out a Database Form with HTML
  2. · The Code
  3. · Body Element cont.
  4. · The Recordset

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Laying Out a Database Form with HTML - The Code
(Page 2 of 4 )

For simplicity, the code I am giving here is not directly connected with the previous codes. However, if you have read all the previous articles then you will be able to link the code here to the codes of the previous parts.

The first part of the web page is as follows:

<html>


<head>

<style type="text/css">

div#Tabular1 {border:2px solid black; width:740px;height:430px; overflow:scroll}

td.name {text-align:center}

table.record {border-top:1px solid red; border-bottom:1px solid blue; border-left-width:0px; border-right-width:0px; margin:0px; padding:0px;}

input.file {width:212px; height:150px}

input.title {width:350px; font-weight:bold; border-width:0px}

table#TransmittedTable {display:none}

td#TDAE1 {text-align:center; display:none} /* the conspicuous button */

</style>

</head>

This section contains the opening HTML tag and the HEAD element. The head element contains the style sheet. Note how I gave the dimensions to the DIV element (div#Tabular1) that holds the recordset.

The Body Element

The body element has one main table. The main table has three rows and two columns. The first row has its own table. This table takes the title of the web page and any other information that might be necessary for the top of the page.

The next row of the main table has two cells. The first cell has the DIV element, which has the recordset. The second cell takes the Shopping Cart. I have not explained the Shopping Cart in this series, but that is a good place to have it. The third row takes the form. Recall that the form has the Transmitted Table.

This is the code for the body element and the closing HTML tag. The code does not show the recordset element:


<body>


<table>

<tbody>

<tr>

<td colspan="2">

<table>

<tbody>

<tr>

<td colspan="3" width="712" align="center">

<h1>Beautiful Quality Watches</h1>

</td>

</tr>

</tbody>

</table>

</td>

</tr>

<tr>

<td>

<div id="Tabular1">


<!-- The Recordset goes here. See below. -->


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 11 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials