SlideShare a Scribd company logo
1 of 46
Forms
Tutorial 6 – Part A




                      1
Forms

• HTML language creates the form elements

• Data entered in the form element can only
  be retrieved or processed through a
  program or script running on a Web Server



                                              2
Server technologies that work with HTML forms


  - CGI / PERL

  - ASPX

  - PHP

  - JSP
                                           3
4
The form tag

<form name=“my_form” id=“my_form”>

     form elements here
     – HTML allowed here also


</form>
                                 5
The form tag
<form name=“xyz” id=“xyz”
      action=“script “
      method= “post or get“
      enctype=“ “
      target=“ “>
</form>
                              6
input tag

<input type=“type”
                               identifies the element
       name=“name”             to the server


       id=“id”   used for CSS /JavaScript


       value=“user entry” />

                                                   7
input tag
<input type=“type”
      name=“name”
      id=“id”
      value=“some_value” >



Every element has a “name” to identify it

The user enters a “value”

                                            8
name / value pairs are sent to the
server when the form is submitted    9
Text box

<input type=”text"

       name=“last_name"

       id=“last_name”   >


          value – what the user enters


                                         10
Text box Attributes
<input type=”text"

       name=“last_name "

        id=“last_name "

       size="number of characters “

      maxlength=" maximum_characters “ >



                                           11
label tag
 • Associates a description with a form element

 • Used for accessibility and JavaScript


   <label for=“id”>
     some text
   </label>

                                                  12
label tag




            13
radio buttons / option buttons


<input type=”radio"

       name=“name"

       id=“id"

       value= “value“   >
                                  14
radio buttons
<input type=”radio"

       name=“name"

       id=“id"              Must code in a value

                               The value
       value= “value“   >      identifies
                              the choice

                                               15
radio buttons

 Occur   in groups

 Must   have the same name

 Must   have different values

 Mutually   exclusive
                                 16
Checked by Default


<input type=”radio"

     checked = “checked” />


<input type=”radio"

       checked >
                              17
check box
<input type=”checkbox"

       name=“name"

       id=“id"           Must code in a value

                            The value
      value= „value“ >
                            identifies
                           the choice
                                          18
check boxes

 Occur   in groups

 Can   have the same name

 Must   have different values

 Can   check all choices
                                 19
check box group – same name
<input type=”checkbox"
        name=“os”
        id=“os1”
       value= “WinXP“ >

<input type=”checkbox"
        name=“os”
        id=“os2”
       value= “Windows2000“ >

                                20
check box group – different name
<input type=”checkbox"
        name=“os1”
        id=“os1”
       value= “WinXP“ >

<input type=”checkbox"
        name=“os2”
        id=“os2”
       value= “Windows2000“ >

                                 21
Force a check


<input type=”checkbox"
     checked = “checked” />


<input type=”checkbox"
        checked >
                              22
missing value attribute

<input type=”checkbox"
          name=“xyz”
          id=“xyz”      />

If checked – will return “on” as the “value”



                                               23
select / drop down list

 Has   one name attribute

 Must   have different values

 “value”   attribute is optional

 Can   check multiple choices
                                    24
A Selection List

<select     name=“job“ id=“job”>   Text will be “value”


 <option>Please select one</option>

 <option>Programmer </option>

 <option>Database Manager </option>

</select>
                                                    25
A Selection List

<select     name=“job“ id=“job”>

<option value="none"> Please select one</option>

<option value ="pgmr">Programmer </option>

<option value =“dbm">Database Manager </option>

</select>


                                                   26
A Multiple Selection List

<select name=“job“ id=“job” multiple=“multiple”>

 <option>CEO</option>
                                   All options
 <option>Director</option>         are shown


 <option>Supervisor</option>

</select>
                                                 27
Multiple Selection List
   with set options visible
<select name=“job“ id=“job” multiple
                            size=“3”>

 <option>CEO</option>
                               3 options
                               are shown
 <option>Director</option>

 <option>Supervisor</option>

</select>
                                           28
selected by default

                                                   Automatically
<select     name=“job“ id=“job”>                     selected


<option value="none"> Please select one</option>


</select>




                                                                   29
force a choice
<option value ="pgmr” selected=“selected”>
    Programmer
</option>


<option value ="pgmr” selected>
    Programmer
</option>

                                       30
Option Groups <optgroup>




                           31
Textarea element

 Multi-line   text box

 Uses    fixed width font

 Sized   using rows and columns


                                   32
Textarea <textarea>
<textarea rows="4" cols="50"
         name="" id="">

</textarea>




                               33
fieldset and legend elements

 Logically   groups elements

 Draws   a box

 The   <legend> tag defines a caption

 for the fieldset element
                                     34
<fieldset>
    <legend> </legend>
   form elements
</fieldset>




                         35
tabindex / accesskey attributes

 Assigns   a tabbing order

 Assigns   a keyboard shortcut




                                  36
tabindex / accesskey attributes
 <label for=“name">Name (Alt-n):</label>

   <input type="text“
      name=“name“
      id="name“
      tabindex="1"
     accesskey="n">
                                           37
readonly / disabled attributes

<input type=” ”
      readonly=”readonly” />


<input type=” ”
       disabled>

                                   38
Other input elements
<input type=”password" >
<input type=”hidden" >


<input type=”image" >
<input type=”file" >

<input type=”submit" >
<input type=”reset" >
                           39
type=“hidden”

hidden fields – used to send information to server




                                                40
type=“file”




              41
type=“image”




<input type=“image” src =“photo.jpg” >



                                         42
Three Types of Buttons

• Command button
    – used with JavaScript
• Submit button
• Reset button


                             43
Submit Button
<input type=”submit"
        name=“"
                       Not really needed
        id=““
       value= „what_it_says” >


          Calls the action of the form

                                           44
Reset
 Reset Button
<input type=”reset"
        name=“"
                       Not really needed
        id=““
       value= „what_it_says“ >


          Clears all the values in the form

                                              45
Click Me
 Command Button
<input type=”button"
        name=“"
        id=““
       value= „what_it_says“ >


         Used with JavaScript

                                      46

More Related Content

What's hot

Introduction to Active Record - Silicon Valley Ruby Conference 2007
Introduction to Active Record - Silicon Valley Ruby Conference 2007Introduction to Active Record - Silicon Valley Ruby Conference 2007
Introduction to Active Record - Silicon Valley Ruby Conference 2007Rabble .
 
Presentation technico-commercial-ruby-on-rails
Presentation technico-commercial-ruby-on-railsPresentation technico-commercial-ruby-on-rails
Presentation technico-commercial-ruby-on-railsNovelys
 
jQuery Rescue Adventure
jQuery Rescue AdventurejQuery Rescue Adventure
jQuery Rescue AdventureAllegient
 
Roman iovlev. Test UI with JDI - Selenium camp
Roman iovlev. Test UI with JDI - Selenium campRoman iovlev. Test UI with JDI - Selenium camp
Roman iovlev. Test UI with JDI - Selenium campРоман Иовлев
 
Contagion的Ruby/Rails投影片
Contagion的Ruby/Rails投影片Contagion的Ruby/Rails投影片
Contagion的Ruby/Rails投影片cfc
 
Web 2 | CSS - Cascading Style Sheets
Web 2 | CSS - Cascading Style SheetsWeb 2 | CSS - Cascading Style Sheets
Web 2 | CSS - Cascading Style SheetsMohammad Imam Hossain
 
How to Mess Up Your Angular UI Components
How to Mess Up Your Angular UI ComponentsHow to Mess Up Your Angular UI Components
How to Mess Up Your Angular UI Componentscagataycivici
 
FormsKit: reactive forms driven by state. UA Mobile 2017.
FormsKit: reactive forms driven by state. UA Mobile 2017.FormsKit: reactive forms driven by state. UA Mobile 2017.
FormsKit: reactive forms driven by state. UA Mobile 2017.UA Mobile
 
JSON in MySQL and MariaDB Databases
JSON in MySQL and MariaDB DatabasesJSON in MySQL and MariaDB Databases
JSON in MySQL and MariaDB DatabasesFederico Razzoli
 
05 html-forms
05 html-forms05 html-forms
05 html-formsPalakshya
 
Scala UA: Big Step To Functional Programming
Scala UA: Big Step To Functional ProgrammingScala UA: Big Step To Functional Programming
Scala UA: Big Step To Functional ProgrammingAlex Fruzenshtein
 

What's hot (18)

Introduction to Active Record - Silicon Valley Ruby Conference 2007
Introduction to Active Record - Silicon Valley Ruby Conference 2007Introduction to Active Record - Silicon Valley Ruby Conference 2007
Introduction to Active Record - Silicon Valley Ruby Conference 2007
 
jQuery introduction
jQuery introductionjQuery introduction
jQuery introduction
 
Presentation technico-commercial-ruby-on-rails
Presentation technico-commercial-ruby-on-railsPresentation technico-commercial-ruby-on-rails
Presentation technico-commercial-ruby-on-rails
 
jQuery Rescue Adventure
jQuery Rescue AdventurejQuery Rescue Adventure
jQuery Rescue Adventure
 
Roman iovlev. Test UI with JDI - Selenium camp
Roman iovlev. Test UI with JDI - Selenium campRoman iovlev. Test UI with JDI - Selenium camp
Roman iovlev. Test UI with JDI - Selenium camp
 
Handlebars.js
Handlebars.jsHandlebars.js
Handlebars.js
 
Contagion的Ruby/Rails投影片
Contagion的Ruby/Rails投影片Contagion的Ruby/Rails投影片
Contagion的Ruby/Rails投影片
 
Jquery 3
Jquery 3Jquery 3
Jquery 3
 
Web 6 | JavaScript DOM
Web 6 | JavaScript DOMWeb 6 | JavaScript DOM
Web 6 | JavaScript DOM
 
Web 2 | CSS - Cascading Style Sheets
Web 2 | CSS - Cascading Style SheetsWeb 2 | CSS - Cascading Style Sheets
Web 2 | CSS - Cascading Style Sheets
 
PureScript & Pux
PureScript & PuxPureScript & Pux
PureScript & Pux
 
How to Mess Up Your Angular UI Components
How to Mess Up Your Angular UI ComponentsHow to Mess Up Your Angular UI Components
How to Mess Up Your Angular UI Components
 
Dom
DomDom
Dom
 
FormsKit: reactive forms driven by state. UA Mobile 2017.
FormsKit: reactive forms driven by state. UA Mobile 2017.FormsKit: reactive forms driven by state. UA Mobile 2017.
FormsKit: reactive forms driven by state. UA Mobile 2017.
 
JSON in MySQL and MariaDB Databases
JSON in MySQL and MariaDB DatabasesJSON in MySQL and MariaDB Databases
JSON in MySQL and MariaDB Databases
 
05 html-forms
05 html-forms05 html-forms
05 html-forms
 
Scala UA: Big Step To Functional Programming
Scala UA: Big Step To Functional ProgrammingScala UA: Big Step To Functional Programming
Scala UA: Big Step To Functional Programming
 
Web 5 | JavaScript Events
Web 5 | JavaScript EventsWeb 5 | JavaScript Events
Web 5 | JavaScript Events
 

Viewers also liked

Dr. Margaret Curette Patton, PhD Dissertation, Dr. William Allan Kritsonis, D...
Dr. Margaret Curette Patton, PhD Dissertation, Dr. William Allan Kritsonis, D...Dr. Margaret Curette Patton, PhD Dissertation, Dr. William Allan Kritsonis, D...
Dr. Margaret Curette Patton, PhD Dissertation, Dr. William Allan Kritsonis, D...William Kritsonis
 
AYN Brand : T3 Workshop - Social Media & Web 2.0 Primer
AYN Brand : T3 Workshop - Social Media & Web 2.0 PrimerAYN Brand : T3 Workshop - Social Media & Web 2.0 Primer
AYN Brand : T3 Workshop - Social Media & Web 2.0 PrimerGrace Rodriguez
 
Williams monica_g[1]._raising_money_at_the_nations_historically_black_colleges
Williams  monica_g[1]._raising_money_at_the_nations_historically_black_collegesWilliams  monica_g[1]._raising_money_at_the_nations_historically_black_colleges
Williams monica_g[1]._raising_money_at_the_nations_historically_black_collegesWilliam Kritsonis
 
Primary December 2010 Celebration
Primary December 2010 CelebrationPrimary December 2010 Celebration
Primary December 2010 CelebrationCAFOD
 
Ericsson for smart living on slideshare
Ericsson for smart living  on slideshareEricsson for smart living  on slideshare
Ericsson for smart living on slideshareMaria Boura
 
웹톡스 - WebTalks 모바일 음성변환 솔루션 제안서
웹톡스 - WebTalks 모바일 음성변환 솔루션 제안서웹톡스 - WebTalks 모바일 음성변환 솔루션 제안서
웹톡스 - WebTalks 모바일 음성변환 솔루션 제안서Justin Shin
 
www.nationalforum.com - Dr. Lorie Webb and Dr. James Jurica - NATIONAL FORUM ...
www.nationalforum.com - Dr. Lorie Webb and Dr. James Jurica - NATIONAL FORUM ...www.nationalforum.com - Dr. Lorie Webb and Dr. James Jurica - NATIONAL FORUM ...
www.nationalforum.com - Dr. Lorie Webb and Dr. James Jurica - NATIONAL FORUM ...William Kritsonis
 
Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)
Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)
Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)Lisa Sjogren
 
East Africa Photogallery
East Africa  PhotogalleryEast Africa  Photogallery
East Africa PhotogalleryCAFOD
 
Dr. Fred C. Lunenburg [1]. special education services nfsej v21 n1 2010
Dr. Fred C. Lunenburg [1]. special education services nfsej v21 n1 2010Dr. Fred C. Lunenburg [1]. special education services nfsej v21 n1 2010
Dr. Fred C. Lunenburg [1]. special education services nfsej v21 n1 2010William Kritsonis
 
Ch 15 Legalities Affecting Schooling - Dr. William Allan Kritsonis
Ch 15 Legalities Affecting Schooling - Dr. William Allan KritsonisCh 15 Legalities Affecting Schooling - Dr. William Allan Kritsonis
Ch 15 Legalities Affecting Schooling - Dr. William Allan KritsonisWilliam Kritsonis
 
Benson Pecha Kucha
Benson Pecha KuchaBenson Pecha Kucha
Benson Pecha Kuchambenson75
 
Dr. Wm. Kritsonis, Editor, NFEAS JOURNAL, www.nationalforum.com
Dr. Wm. Kritsonis, Editor, NFEAS JOURNAL, www.nationalforum.comDr. Wm. Kritsonis, Editor, NFEAS JOURNAL, www.nationalforum.com
Dr. Wm. Kritsonis, Editor, NFEAS JOURNAL, www.nationalforum.comWilliam Kritsonis
 
CSIS 138 Javascript Class1
CSIS 138 Javascript Class1CSIS 138 Javascript Class1
CSIS 138 Javascript Class1Teresa Pelkie
 
Ruby 1.9.1への道
Ruby 1.9.1への道Ruby 1.9.1への道
Ruby 1.9.1への道Yuki Sonoda
 
Politics in education, Dr. W.A. Kritsonis
Politics in education, Dr. W.A. KritsonisPolitics in education, Dr. W.A. Kritsonis
Politics in education, Dr. W.A. KritsonisWilliam Kritsonis
 
Osseo Apps: I've Done It All… Now What?
Osseo Apps: I've Done It All… Now What?Osseo Apps: I've Done It All… Now What?
Osseo Apps: I've Done It All… Now What?Lisa Sjogren
 

Viewers also liked (20)

Dr. Margaret Curette Patton, PhD Dissertation, Dr. William Allan Kritsonis, D...
Dr. Margaret Curette Patton, PhD Dissertation, Dr. William Allan Kritsonis, D...Dr. Margaret Curette Patton, PhD Dissertation, Dr. William Allan Kritsonis, D...
Dr. Margaret Curette Patton, PhD Dissertation, Dr. William Allan Kritsonis, D...
 
AYN Brand : T3 Workshop - Social Media & Web 2.0 Primer
AYN Brand : T3 Workshop - Social Media & Web 2.0 PrimerAYN Brand : T3 Workshop - Social Media & Web 2.0 Primer
AYN Brand : T3 Workshop - Social Media & Web 2.0 Primer
 
Williams monica_g[1]._raising_money_at_the_nations_historically_black_colleges
Williams  monica_g[1]._raising_money_at_the_nations_historically_black_collegesWilliams  monica_g[1]._raising_money_at_the_nations_historically_black_colleges
Williams monica_g[1]._raising_money_at_the_nations_historically_black_colleges
 
Primary December 2010 Celebration
Primary December 2010 CelebrationPrimary December 2010 Celebration
Primary December 2010 Celebration
 
Historical foundations
Historical foundationsHistorical foundations
Historical foundations
 
Ericsson for smart living on slideshare
Ericsson for smart living  on slideshareEricsson for smart living  on slideshare
Ericsson for smart living on slideshare
 
웹톡스 - WebTalks 모바일 음성변환 솔루션 제안서
웹톡스 - WebTalks 모바일 음성변환 솔루션 제안서웹톡스 - WebTalks 모바일 음성변환 솔루션 제안서
웹톡스 - WebTalks 모바일 음성변환 솔루션 제안서
 
Sahya Part 6
Sahya Part 6Sahya Part 6
Sahya Part 6
 
www.nationalforum.com - Dr. Lorie Webb and Dr. James Jurica - NATIONAL FORUM ...
www.nationalforum.com - Dr. Lorie Webb and Dr. James Jurica - NATIONAL FORUM ...www.nationalforum.com - Dr. Lorie Webb and Dr. James Jurica - NATIONAL FORUM ...
www.nationalforum.com - Dr. Lorie Webb and Dr. James Jurica - NATIONAL FORUM ...
 
Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)
Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)
Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)
 
Are we agile yet?
Are we agile yet?Are we agile yet?
Are we agile yet?
 
East Africa Photogallery
East Africa  PhotogalleryEast Africa  Photogallery
East Africa Photogallery
 
Dr. Fred C. Lunenburg [1]. special education services nfsej v21 n1 2010
Dr. Fred C. Lunenburg [1]. special education services nfsej v21 n1 2010Dr. Fred C. Lunenburg [1]. special education services nfsej v21 n1 2010
Dr. Fred C. Lunenburg [1]. special education services nfsej v21 n1 2010
 
Ch 15 Legalities Affecting Schooling - Dr. William Allan Kritsonis
Ch 15 Legalities Affecting Schooling - Dr. William Allan KritsonisCh 15 Legalities Affecting Schooling - Dr. William Allan Kritsonis
Ch 15 Legalities Affecting Schooling - Dr. William Allan Kritsonis
 
Benson Pecha Kucha
Benson Pecha KuchaBenson Pecha Kucha
Benson Pecha Kucha
 
Dr. Wm. Kritsonis, Editor, NFEAS JOURNAL, www.nationalforum.com
Dr. Wm. Kritsonis, Editor, NFEAS JOURNAL, www.nationalforum.comDr. Wm. Kritsonis, Editor, NFEAS JOURNAL, www.nationalforum.com
Dr. Wm. Kritsonis, Editor, NFEAS JOURNAL, www.nationalforum.com
 
CSIS 138 Javascript Class1
CSIS 138 Javascript Class1CSIS 138 Javascript Class1
CSIS 138 Javascript Class1
 
Ruby 1.9.1への道
Ruby 1.9.1への道Ruby 1.9.1への道
Ruby 1.9.1への道
 
Politics in education, Dr. W.A. Kritsonis
Politics in education, Dr. W.A. KritsonisPolitics in education, Dr. W.A. Kritsonis
Politics in education, Dr. W.A. Kritsonis
 
Osseo Apps: I've Done It All… Now What?
Osseo Apps: I've Done It All… Now What?Osseo Apps: I've Done It All… Now What?
Osseo Apps: I've Done It All… Now What?
 

Similar to HTML Form Part 1

20 html-forms
20 html-forms20 html-forms
20 html-formsKumar
 
Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2RORLAB
 
Implementation of EAV pattern for ActiveRecord models
Implementation of EAV pattern for ActiveRecord modelsImplementation of EAV pattern for ActiveRecord models
Implementation of EAV pattern for ActiveRecord modelsKostyantyn Stepanyuk
 
Synapse india complain sharing info about php chaptr 26
Synapse india complain sharing info about php chaptr 26Synapse india complain sharing info about php chaptr 26
Synapse india complain sharing info about php chaptr 26SynapseindiaComplaints
 
Type safe embedded domain-specific languages
Type safe embedded domain-specific languagesType safe embedded domain-specific languages
Type safe embedded domain-specific languagesArthur Xavier
 
Python Code Camp for Professionals 4/4
Python Code Camp for Professionals 4/4Python Code Camp for Professionals 4/4
Python Code Camp for Professionals 4/4DEVCON
 
Iniciando com jquery
Iniciando com jqueryIniciando com jquery
Iniciando com jqueryDanilo Sousa
 
Chapter 2 class power point
Chapter 2 class power pointChapter 2 class power point
Chapter 2 class power pointcmurphysvhs
 
Type level programming in Scala
Type level programming in ScalaType level programming in Scala
Type level programming in ScalaIkhoon Eom
 
Angular2 Development for Java developers
Angular2 Development for Java developersAngular2 Development for Java developers
Angular2 Development for Java developersYakov Fain
 
MWLUG 2015 - AD114 Take Your XPages Development to the Next Level
MWLUG 2015 - AD114 Take Your XPages Development to the Next LevelMWLUG 2015 - AD114 Take Your XPages Development to the Next Level
MWLUG 2015 - AD114 Take Your XPages Development to the Next Levelbalassaitis
 
API first with Swagger and Scala by Slava Schmidt
API first with Swagger and Scala by  Slava SchmidtAPI first with Swagger and Scala by  Slava Schmidt
API first with Swagger and Scala by Slava SchmidtJavaDayUA
 
HTML5 workshop, forms
HTML5 workshop, formsHTML5 workshop, forms
HTML5 workshop, formsRobert Nyman
 

Similar to HTML Form Part 1 (20)

20 html-forms
20 html-forms20 html-forms
20 html-forms
 
Cmsc 100 (web forms)
Cmsc 100 (web forms)Cmsc 100 (web forms)
Cmsc 100 (web forms)
 
Jquery
JqueryJquery
Jquery
 
Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2
 
Implementation of EAV pattern for ActiveRecord models
Implementation of EAV pattern for ActiveRecord modelsImplementation of EAV pattern for ActiveRecord models
Implementation of EAV pattern for ActiveRecord models
 
Javascript ch7
Javascript ch7Javascript ch7
Javascript ch7
 
Synapse india complain sharing info about php chaptr 26
Synapse india complain sharing info about php chaptr 26Synapse india complain sharing info about php chaptr 26
Synapse india complain sharing info about php chaptr 26
 
Type safe embedded domain-specific languages
Type safe embedded domain-specific languagesType safe embedded domain-specific languages
Type safe embedded domain-specific languages
 
Web design - Working with forms in HTML
Web design - Working with forms in HTMLWeb design - Working with forms in HTML
Web design - Working with forms in HTML
 
Python Code Camp for Professionals 4/4
Python Code Camp for Professionals 4/4Python Code Camp for Professionals 4/4
Python Code Camp for Professionals 4/4
 
Php mysql
Php mysqlPhp mysql
Php mysql
 
Iniciando com jquery
Iniciando com jqueryIniciando com jquery
Iniciando com jquery
 
Chapter 2 class power point
Chapter 2 class power pointChapter 2 class power point
Chapter 2 class power point
 
Elm: give it a try
Elm: give it a tryElm: give it a try
Elm: give it a try
 
Type level programming in Scala
Type level programming in ScalaType level programming in Scala
Type level programming in Scala
 
HTML and CSS part 2
HTML and CSS part 2HTML and CSS part 2
HTML and CSS part 2
 
Angular2 Development for Java developers
Angular2 Development for Java developersAngular2 Development for Java developers
Angular2 Development for Java developers
 
MWLUG 2015 - AD114 Take Your XPages Development to the Next Level
MWLUG 2015 - AD114 Take Your XPages Development to the Next LevelMWLUG 2015 - AD114 Take Your XPages Development to the Next Level
MWLUG 2015 - AD114 Take Your XPages Development to the Next Level
 
API first with Swagger and Scala by Slava Schmidt
API first with Swagger and Scala by  Slava SchmidtAPI first with Swagger and Scala by  Slava Schmidt
API first with Swagger and Scala by Slava Schmidt
 
HTML5 workshop, forms
HTML5 workshop, formsHTML5 workshop, forms
HTML5 workshop, forms
 

Recently uploaded

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Recently uploaded (20)

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

HTML Form Part 1

  • 2. Forms • HTML language creates the form elements • Data entered in the form element can only be retrieved or processed through a program or script running on a Web Server 2
  • 3. Server technologies that work with HTML forms - CGI / PERL - ASPX - PHP - JSP 3
  • 4. 4
  • 5. The form tag <form name=“my_form” id=“my_form”> form elements here – HTML allowed here also </form> 5
  • 6. The form tag <form name=“xyz” id=“xyz” action=“script “ method= “post or get“ enctype=“ “ target=“ “> </form> 6
  • 7. input tag <input type=“type” identifies the element name=“name” to the server id=“id” used for CSS /JavaScript value=“user entry” /> 7
  • 8. input tag <input type=“type” name=“name” id=“id” value=“some_value” > Every element has a “name” to identify it The user enters a “value” 8
  • 9. name / value pairs are sent to the server when the form is submitted 9
  • 10. Text box <input type=”text" name=“last_name" id=“last_name” > value – what the user enters 10
  • 11. Text box Attributes <input type=”text" name=“last_name " id=“last_name " size="number of characters “ maxlength=" maximum_characters “ > 11
  • 12. label tag • Associates a description with a form element • Used for accessibility and JavaScript <label for=“id”> some text </label> 12
  • 13. label tag 13
  • 14. radio buttons / option buttons <input type=”radio" name=“name" id=“id" value= “value“ > 14
  • 15. radio buttons <input type=”radio" name=“name" id=“id" Must code in a value The value value= “value“ > identifies the choice 15
  • 16. radio buttons  Occur in groups  Must have the same name  Must have different values  Mutually exclusive 16
  • 17. Checked by Default <input type=”radio" checked = “checked” /> <input type=”radio" checked > 17
  • 18. check box <input type=”checkbox" name=“name" id=“id" Must code in a value The value value= „value“ > identifies the choice 18
  • 19. check boxes  Occur in groups  Can have the same name  Must have different values  Can check all choices 19
  • 20. check box group – same name <input type=”checkbox" name=“os” id=“os1” value= “WinXP“ > <input type=”checkbox" name=“os” id=“os2” value= “Windows2000“ > 20
  • 21. check box group – different name <input type=”checkbox" name=“os1” id=“os1” value= “WinXP“ > <input type=”checkbox" name=“os2” id=“os2” value= “Windows2000“ > 21
  • 22. Force a check <input type=”checkbox" checked = “checked” /> <input type=”checkbox" checked > 22
  • 23. missing value attribute <input type=”checkbox" name=“xyz” id=“xyz” /> If checked – will return “on” as the “value” 23
  • 24. select / drop down list  Has one name attribute  Must have different values  “value” attribute is optional  Can check multiple choices 24
  • 25. A Selection List <select name=“job“ id=“job”> Text will be “value” <option>Please select one</option> <option>Programmer </option> <option>Database Manager </option> </select> 25
  • 26. A Selection List <select name=“job“ id=“job”> <option value="none"> Please select one</option> <option value ="pgmr">Programmer </option> <option value =“dbm">Database Manager </option> </select> 26
  • 27. A Multiple Selection List <select name=“job“ id=“job” multiple=“multiple”> <option>CEO</option> All options <option>Director</option> are shown <option>Supervisor</option> </select> 27
  • 28. Multiple Selection List with set options visible <select name=“job“ id=“job” multiple size=“3”> <option>CEO</option> 3 options are shown <option>Director</option> <option>Supervisor</option> </select> 28
  • 29. selected by default Automatically <select name=“job“ id=“job”> selected <option value="none"> Please select one</option> </select> 29
  • 30. force a choice <option value ="pgmr” selected=“selected”> Programmer </option> <option value ="pgmr” selected> Programmer </option> 30
  • 32. Textarea element  Multi-line text box  Uses fixed width font  Sized using rows and columns 32
  • 33. Textarea <textarea> <textarea rows="4" cols="50" name="" id=""> </textarea> 33
  • 34. fieldset and legend elements  Logically groups elements  Draws a box  The <legend> tag defines a caption for the fieldset element 34
  • 35. <fieldset> <legend> </legend> form elements </fieldset> 35
  • 36. tabindex / accesskey attributes  Assigns a tabbing order  Assigns a keyboard shortcut 36
  • 37. tabindex / accesskey attributes <label for=“name">Name (Alt-n):</label> <input type="text“ name=“name“ id="name“ tabindex="1" accesskey="n"> 37
  • 38. readonly / disabled attributes <input type=” ” readonly=”readonly” /> <input type=” ” disabled> 38
  • 39. Other input elements <input type=”password" > <input type=”hidden" > <input type=”image" > <input type=”file" > <input type=”submit" > <input type=”reset" > 39
  • 40. type=“hidden” hidden fields – used to send information to server 40
  • 43. Three Types of Buttons • Command button – used with JavaScript • Submit button • Reset button 43
  • 44. Submit Button <input type=”submit" name=“" Not really needed id=““ value= „what_it_says” > Calls the action of the form 44
  • 45. Reset Reset Button <input type=”reset" name=“" Not really needed id=““ value= „what_it_says“ > Clears all the values in the form 45
  • 46. Click Me Command Button <input type=”button" name=“" id=““ value= „what_it_says“ > Used with JavaScript 46