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

Virtualisation advances for teaching and research
Virtualisation advances for teaching and researchVirtualisation advances for teaching and research
Virtualisation advances for teaching and researchMichael Rees
 
Building Classroom Community
Building Classroom CommunityBuilding Classroom Community
Building Classroom CommunityMichael Rees
 
Teaching with Social Media
Teaching with Social MediaTeaching with Social Media
Teaching with Social MediaMichael Rees
 
Teaching with Social Media
Teaching with Social MediaTeaching with Social Media
Teaching with Social MediaMichael Rees
 
Cloud Apps Ascent - Snapshot
Cloud Apps Ascent - SnapshotCloud Apps Ascent - Snapshot
Cloud Apps Ascent - SnapshotMichael Rees
 
INFT132 093 07 Document Object Model
INFT132 093 07 Document Object ModelINFT132 093 07 Document Object Model
INFT132 093 07 Document Object ModelMichael Rees
 
INFT132 093 05 Cascading Style Sheets
INFT132 093 05 Cascading Style SheetsINFT132 093 05 Cascading Style Sheets
INFT132 093 05 Cascading Style SheetsMichael Rees
 
INFT132 093 03 Web Concepts
INFT132 093 03 Web ConceptsINFT132 093 03 Web Concepts
INFT132 093 03 Web ConceptsMichael Rees
 
INFT132 093 02 Internet Concepts
INFT132 093 02 Internet ConceptsINFT132 093 02 Internet Concepts
INFT132 093 02 Internet ConceptsMichael Rees
 
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 RoadmapMichael Rees
 
Favourite Cloud Apps
Favourite Cloud AppsFavourite Cloud Apps
Favourite Cloud AppsMichael Rees
 
Screencasting to Enhance Teaching Materials
Screencasting to Enhance Teaching MaterialsScreencasting to Enhance Teaching Materials
Screencasting to Enhance Teaching MaterialsMichael Rees
 
QCEC2009 Virtual IT Teaching Laboratory
QCEC2009 Virtual IT Teaching LaboratoryQCEC2009 Virtual IT Teaching Laboratory
QCEC2009 Virtual IT Teaching LaboratoryMichael Rees
 
Screencasting At Bond
Screencasting At BondScreencasting At Bond
Screencasting At BondMichael Rees
 
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 IntroMichael Rees
 
Working In The Cloud General Edition
Working In The Cloud General EditionWorking In The Cloud General Edition
Working In The Cloud General EditionMichael Rees
 
Working in The Cloud - Michael Rees
Working in The Cloud - Michael ReesWorking in The Cloud - Michael Rees
Working in The Cloud - Michael ReesMichael 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 MeetingMichael Rees
 
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 SlidesMichael 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

Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 

Dernier (20)

Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 

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