to home page


 INTRODUCTION
Save 50-70% on INK cartridges.
 


INTRODUCTION TO FORMS

 

HOME
TUTORIALS
LINKS
FORUM
GLOSSARY
NEWS/ABOUT

THIS AREA

MAIN

BASICS
Basic Tutorial
Advance Tutorial

Beyond Tips
frames
sound
video
forms
Main
Introduction
Getting started
<input> basics

<input> Types
Form Properties
Comments form
<button> tag
Other Resources


Java &JavaScript
event handlers

Composer Hints

Reviews

 

 

BWRS
SEARCH

 

 

 

 

 

Forms essentially have 2 component

Look at out loan calculating example again

Car Purchase Plan

(Please not this is a fun example and not a serious form for calculating car loans)
Total Car Price (£)
Deposit (£)
Annual Interest Rate: %
Loan Length Years
The costs
Outstanding loan (£)
No of Payments Months
Deposit (£)
Monthly Cost (£)

 

You have a series of inputs you can fill in just like a paper form. Inputs can range from text boxes, to tick boxes to buttons

When you hit the button on the form the data entered is submitted. The actual form properties determine where that data goes to

At a simplest level pressing a form button can be used to trigger an eventback to top

For example
Click on this button and you get our version of those site navigation maps you often see


We teach you how to do this later

Or it can send the data on

It can send the data in the form of an e-mail and we'll be working towards creating a simple comments/guestbook using this

Or it can send the data to another program which processes the information (called an form handler).

In our example above the data you enter is sent to a JavaScript form handler on the page which processes the data and comes up with the answers

There are a range of different form handlers available. (Don't get worried we're not really going to focus on this and you can create lots of forms without knowing about these)

They fall into 2 types

Server-sided scripting which sit on your website server (or 3rd person site) when processing the data.

Client sided scripting like JavaScript or Java (for more on these click here). Here the script is downloaded and run on the client/browsers computer.

A common server sided form handler is CGI (Common gateway interface) scripts.
It is much better at complex activities (e.g. creating a site search engines, webcounters etc.). There are more advanced scripting languages also used now like PHP and ASP

Not all ISP offer to support CGI and other script support. Others may limit those you can use and not to allow you to write your own. You can get round this by using use CGI on other sites to work round this . Many 3rd party sites offer this for free in exchange for advertisements (see our links for more details)

CGI and their interactions with forms are not so easy. Hence we're keeping things brief regard these.

Lets now look at adding forms with Composer. You'll need to know how to add HTML (click here to refresh your mind)

 

back to top

FORMS
MAIN

back to forms MainAdding forms

Adding Forms

This page © 2002 A.Duncan BWRS

terms & conditions copyright © 1999-2003 legal notices
home
credits
contact us link to us