1
00:00:00,580 --> 00:00:05,720
In this lecture we'll be creating an HMO form.

2
00:00:05,830 --> 00:00:09,200
This is a sample of the form we'll be creating.

3
00:00:09,280 --> 00:00:12,100
It's an employment application form.

4
00:00:12,100 --> 00:00:20,530
It asks the user for some personal information the form consists of text fields select menus checkboxes

5
00:00:21,670 --> 00:00:31,630
radio buttons text areas and the submit in reset button the form inputs and input labels are organized

6
00:00:31,630 --> 00:00:32,380
into a table

7
00:00:35,140 --> 00:00:36,520
so let's get started.

8
00:00:37,150 --> 00:00:43,420
You need to open the form dot HMO file in the downloads folder corresponding to this lecture

9
00:00:49,180 --> 00:00:57,400
with the form dot HMO file open you'll notice at the basic page structure is already set up the HMO

10
00:00:57,400 --> 00:01:06,350
code also contains a table with two columns in nine rows in the body we'll use this table for our form

11
00:01:06,350 --> 00:01:14,380
fields Let's preview the file just to make sure our table is visible and there are no errors in the

12
00:01:14,380 --> 00:01:23,010
code.

13
00:01:23,140 --> 00:01:24,940
This is what your page should look like.

14
00:01:24,940 --> 00:01:36,970
Initially just an empty table with our two columns in nine rows.

15
00:01:37,120 --> 00:01:43,420
The first thing we need to do to create our form is insert our open and close form tags

16
00:01:54,600 --> 00:02:02,880
these tags will contain all the HMO code pertaining to our form fields such as text inputs select menus

17
00:02:03,570 --> 00:02:08,290
submission buttons and other form elements.

18
00:02:08,330 --> 00:02:11,710
It's very important to create the form tags first.

19
00:02:12,080 --> 00:02:19,970
Otherwise the form will not work the form tags must encompass the entire table because all our form

20
00:02:19,970 --> 00:02:28,970
fields will be contained within the table the form tag also has important attributes that we must define

21
00:02:30,610 --> 00:02:31,410
first.

22
00:02:31,480 --> 00:02:38,170
It's a good practice to name the form so that if you create multiple forms on the same page each can

23
00:02:38,170 --> 00:02:39,780
be distinguished from one another

24
00:02:43,120 --> 00:02:50,630
we'll name this form employment.

25
00:02:50,740 --> 00:02:55,040
Next we need to instruct our browser on where to send this form data.

26
00:02:55,090 --> 00:02:59,850
Upon submission this is known as the form action.

27
00:02:59,850 --> 00:03:07,080
In our case we'll be sending the data to a HP script which will instruct our web server on how the data

28
00:03:07,080 --> 00:03:14,020
should be processed for the form action Let's type in send it IP HP

29
00:03:20,350 --> 00:03:24,700
we will create to send out BHP in the HP section of this course

30
00:03:28,060 --> 00:03:36,460
in addition to the action attribute we must also specify a method of data transmission a form method

31
00:03:36,730 --> 00:03:43,830
tells the browser to submit the data through the post or get come in for now we'll define the method

32
00:03:43,860 --> 00:03:49,110
is post we'll explore both these methods in more detail in the next lecture.
