SlideShare une entreprise Scribd logo
1  sur  9
INFT11/71-132Web ApplicationsHTML Forms Dr Michael Rees School of Information Technology mrees@bond.edu.au
Forms Overview Web page equivalent to paper forms Form components: text entry selectable options buttons Contains at least one Submit button When Submit clicked, form entity values sent to server: contents of all form text boxes and selections action (program, script) to be obeyed at the server Server action generates new HTML Forms allow two-way interaction with user © 2009 Michael Rees Web Applications 2
Example Form © 2009 Michael Rees Web Applications 3
Form HTML Part 1  <form method="get" action="http://some.server.com/cgi/scriptaction.script" enctype="application/x-www-form-urlencoded">   <p>     Name:     <input id="Text1" type="text" /></p>   <p>     Gender:     <input name="Gender" id="Female" type="radio" checked="checked" />     Female     <input name="Gender" id="Male" type="radio" />     Male</p>   <p>     Receive email:     <input id="Checkbox1" type="checkbox" checked="checked" /></p> © 2009 Michael Rees Web Applications 4
Form HTML Part 2   <p>     Comments:     <br />     <textarea id="TextArea1" cols="40" name="S1" rows="4">Several lines of text that make up the comment.</textarea>   </p>   <p>     Make a choice:     <br />     <select id="Select1" size="3">       <option>First choice</option>       <option>Second choice</option>       <option>Third choice</option>     </select>   </p> © 2009 Michael Rees Web Applications 5
Form HTML Part 3   <p>     Upload a file:     <input id="File1" type="file" />   </p>   <p>     <input id="Submit1" type="submit" value="Submit" />     <input id="Reset1" type="reset" value="Reset" />     <input id="Button1" type="button" value="Regular button" />   </p>   </form> © 2009 Michael Rees Web Applications 6
More Resources W3Schools form page Textbook Section 2.9 © 2009 Michael Rees Web Applications 7
Web Applications JavaScript History and Versions  JavaScript was introduced as part of the Netscape 2.0 browser Microsoft soon released its own version called JScript ECMA developed a standard language known as ECMAScript ECMAScriptEdition 3 is widely supported and is what we call JavaScript © 2009 Michael Rees 8
Resources Read Chapter 4 of textbook © 2009 Michael Rees Web Applications 9

Contenu connexe

Plus de Michael Rees

Plus de Michael Rees (20)

Virtualisation advances for teaching and research
Virtualisation advances for teaching and researchVirtualisation advances for teaching and research
Virtualisation advances for teaching and research
 
Building Classroom Community
Building Classroom CommunityBuilding Classroom Community
Building Classroom Community
 
Teaching with Social Media
Teaching with Social MediaTeaching with Social Media
Teaching with Social Media
 
Teaching with Social Media
Teaching with Social MediaTeaching with Social Media
Teaching with Social Media
 
Cloud Apps Ascent - Snapshot
Cloud Apps Ascent - SnapshotCloud Apps Ascent - Snapshot
Cloud Apps Ascent - Snapshot
 
INFT132 093 07 Document Object Model
INFT132 093 07 Document Object ModelINFT132 093 07 Document Object Model
INFT132 093 07 Document Object Model
 
INFT132 093 05 Cascading Style Sheets
INFT132 093 05 Cascading Style SheetsINFT132 093 05 Cascading Style Sheets
INFT132 093 05 Cascading Style Sheets
 
INFT132 093 03 Web Concepts
INFT132 093 03 Web ConceptsINFT132 093 03 Web Concepts
INFT132 093 03 Web Concepts
 
INFT132 093 02 Internet Concepts
INFT132 093 02 Internet ConceptsINFT132 093 02 Internet Concepts
INFT132 093 02 Internet Concepts
 
Get Connected - Building a Social Media Roadmap
Get Connected - Building a Social Media RoadmapGet Connected - Building a Social Media Roadmap
Get Connected - Building a Social Media Roadmap
 
Favourite Cloud Apps
Favourite Cloud AppsFavourite Cloud Apps
Favourite Cloud Apps
 
Screencasting to Enhance Teaching Materials
Screencasting to Enhance Teaching MaterialsScreencasting to Enhance Teaching Materials
Screencasting to Enhance Teaching Materials
 
QCEC2009 Virtual IT Teaching Laboratory
QCEC2009 Virtual IT Teaching LaboratoryQCEC2009 Virtual IT Teaching Laboratory
QCEC2009 Virtual IT Teaching Laboratory
 
Screencasting At Bond
Screencasting At BondScreencasting At Bond
Screencasting At Bond
 
Social Media Club Gold Coast Meeting 2 Intro
Social Media Club Gold Coast Meeting 2 IntroSocial Media Club Gold Coast Meeting 2 Intro
Social Media Club Gold Coast Meeting 2 Intro
 
Working In The Cloud General Edition
Working In The Cloud General EditionWorking In The Cloud General Edition
Working In The Cloud General Edition
 
Working in The Cloud - Michael Rees
Working in The Cloud - Michael ReesWorking in The Cloud - Michael Rees
Working in The Cloud - Michael Rees
 
Social Media Club Gold Coast Inaugural Meeting
Social Media Club Gold Coast Inaugural MeetingSocial Media Club Gold Coast Inaugural Meeting
Social Media Club Gold Coast Inaugural Meeting
 
Twitter Slides
Twitter SlidesTwitter Slides
Twitter Slides
 
Social Media Club Gold Coast Michael Rees Slides
Social Media Club Gold Coast Michael Rees SlidesSocial Media Club Gold Coast Michael Rees Slides
Social Media Club Gold Coast Michael Rees Slides
 

Dernier

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Dernier (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

INFT132 093 08 Html Forms

  • 1. INFT11/71-132Web ApplicationsHTML Forms Dr Michael Rees School of Information Technology mrees@bond.edu.au
  • 2. Forms Overview Web page equivalent to paper forms Form components: text entry selectable options buttons Contains at least one Submit button When Submit clicked, form entity values sent to server: contents of all form text boxes and selections action (program, script) to be obeyed at the server Server action generates new HTML Forms allow two-way interaction with user © 2009 Michael Rees Web Applications 2
  • 3. Example Form © 2009 Michael Rees Web Applications 3
  • 4. Form HTML Part 1 <form method="get" action="http://some.server.com/cgi/scriptaction.script" enctype="application/x-www-form-urlencoded"> <p> Name: <input id="Text1" type="text" /></p> <p> Gender: <input name="Gender" id="Female" type="radio" checked="checked" /> Female <input name="Gender" id="Male" type="radio" /> Male</p> <p> Receive email: <input id="Checkbox1" type="checkbox" checked="checked" /></p> © 2009 Michael Rees Web Applications 4
  • 5. Form HTML Part 2 <p> Comments: <br /> <textarea id="TextArea1" cols="40" name="S1" rows="4">Several lines of text that make up the comment.</textarea> </p> <p> Make a choice: <br /> <select id="Select1" size="3"> <option>First choice</option> <option>Second choice</option> <option>Third choice</option> </select> </p> © 2009 Michael Rees Web Applications 5
  • 6. Form HTML Part 3 <p> Upload a file: <input id="File1" type="file" /> </p> <p> <input id="Submit1" type="submit" value="Submit" /> <input id="Reset1" type="reset" value="Reset" /> <input id="Button1" type="button" value="Regular button" /> </p> </form> © 2009 Michael Rees Web Applications 6
  • 7. More Resources W3Schools form page Textbook Section 2.9 © 2009 Michael Rees Web Applications 7
  • 8. Web Applications JavaScript History and Versions JavaScript was introduced as part of the Netscape 2.0 browser Microsoft soon released its own version called JScript ECMA developed a standard language known as ECMAScript ECMAScriptEdition 3 is widely supported and is what we call JavaScript © 2009 Michael Rees 8
  • 9. Resources Read Chapter 4 of textbook © 2009 Michael Rees Web Applications 9