Web Design and Development ACS-1809. Chapter 13. Using Forms 11/30/2015 1

Similar documents
HTML Forms. Pat Morin COMP 2405

<option> eggs </option> <option> cheese </option> </select> </p> </form>

Internet Technologies

HTML Form Widgets. Review: HTML Forms. Review: CGI Programs

Further web design: HTML forms

Tutorial 6 Creating a Web Form. HTML and CSS 6 TH EDITION

07 Forms. 1 About Forms. 2 The FORM Tag. 1.1 Form Handlers

XHTML Forms. Form syntax. Selection widgets. Submission method. Submission action. Radio buttons

Dreamweaver Tutorials Creating a Web Contact Form

By Glenn Fleishman. WebSpy. Form and function

PHP Form Handling. Prof. Jim Whitehead CMPS 183 Spring 2006 May 3, 2006

HTML Forms and CONTROLS

Viewing Form Results

2- Forms and JavaScript Course: Developing web- based applica<ons

FORMS. Introduction. Form Basics

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

A MODEL FOR THE AUTOMATION OF HTML FORM CREATION AND VALIDATION. Keywords: html, form, web, automation, validation, class, model.

HTML Tables. IT 3203 Introduction to Web Development

Chapter 15: Forms. User Guide. 1 P a g e

FRONTPAGE FORMS

UNIVERSITY OF CALGARY Information Technologies WEBFORMS DRUPAL 7 WEB CONTENT MANAGEMENT

CS412 Interactive Lab Creating a Simple Web Form

Outlook Web App User Guide

FORM-ORIENTED DATA ENTRY

Rochester Institute of Technology. Finance and Administration. Drupal 7 Training Documentation

Designing and Implementing Forms 34

Tutorial: Creating a form that s the results to you.

User Guide for Smart Former Gold (v. 1.0) by IToris Inc. team

JOOMLA 2.5 MANUAL WEBSITEDESIGN.CO.ZA

Google Sites: Site Creation and Home Page Design

Web Development 1 A4 Project Description Web Architecture

Inserting the Form Field In Dreamweaver 4, open a new or existing page. From the Insert menu choose Form.

Microsoft Expression Web

CITS. Windows & Macintosh Zimbra Calendar 5.0. Computing and Information Technology Services. Revised 8/21/2008

Aras Corporation Aras Corporation. All rights reserved. Notice of Rights. Notice of Liability

PISA 2015 MS Online School Questionnaire: User s Manual

Introduction to XHTML. 2010, Robert K. Moniot 1

Strategic Asset Tracking System User Guide

Terminal Four. Content Management System. Moderator Access

How to Create a WordPress web site at

Manual for CKForms component Release 1.3.4

OWA User Guide. Table of Contents

Dreamweaver Mail Forms: Using ritmail.cgi

Using FrontPage 2000 to Create Forms

Upload Center Forms. Contents. Defining Forms 2. Form Options 5. Applying Forms 6. Processing The Data 6. Maxum Development Corp.

Streamlining Purchases with Website Payment Preferences

MyTax Illinois Help. General use information Access and logon information... 12

USER S MANUAL JOOMLA! GOVERNMENT WEB TEMPLATE

Criminal Attorney Online Vouchers. 18b Web application Training Guide Last Updated: March 2014 (v1.05)

How To Change Your Site On Drupal Cloud On A Pcode On A Microsoft Powerstone On A Macbook Or Ipad (For Free) On A Freebie (For A Free Download) On An Ipad Or Ipa (For

Dashboard Builder TM for Microsoft Access

MyReports Recommended Browser Settings MYR-200a

XHTML BASICS. Institute of Finance Management CIT Department Herman Mandari

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Web Design in Nvu Workbook 1

ADOBE ACROBAT 7.0 CREATING FORMS

How to Build a SharePoint Website

DocuSign Connect for Salesforce Guide

domovea remote access tebis

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

Reference Guide for WebCDM Application 2013 CEICData. All rights reserved.

ADMINISTRATOR GUIDE VERSION

About Google Analytics

PCORI Online User Manual: Submitting a Letter of Intent

Using Webmail. Document Updated: 9/08. Technical Manual: User Guide. The Webmail Window. Displaying and Hiding the Full Header.

How to Edit Your Website

STATGRAPHICS Online. Statistical Analysis and Data Visualization System. Revised 6/21/2012. Copyright 2012 by StatPoint Technologies, Inc.

Getting Started with KompoZer

-- Reading and Printing

InPost UK Limited GeoWidget Integration Guide Version 1.1

Web Developer Jr - Newbie Course

Using Webmail. Document Updated: 11/10. Technical Manual: User Guide. The Webmail Window. Logging In to Webmail. Displaying and Hiding the Full Header

iglobe CRM SharePoint App Documentation Version Thursday, January 30, 2014 Support contact iglobe:

Microsoft Outlook 2007 Calendar Features

ClockWork Online Test Booking Manual. TechnoPro Computer Solutions Inc. 2013

VanillaSoft. Administrator s Manual

GOOGLE DOCS APPLICATION WORK WITH GOOGLE DOCUMENTS

Roaring Penguin User Guide

ITP 101 Project 3 - Dreamweaver

Installation & Configuration Guide Professional Edition

MERCHANT SERVICES ONLINE. TD Retail Card Services

DNNCentric Custom Form Creator. User Manual

Personalizing Your Individual Phone Line Setup For assistance, please call ext. 102.

How to Add Documents to Your Blackboard Class

Kalendi Android Calendar Client User Manual

Recommended Browser Setting for MySBU Portal

WordPress Security Scan Configuration

Using Form Tools (admin)

How to Make a Working Contact Form for your Website in Dreamweaver CS3

Institution/Department Administrator Manual

Working with forms in PHP

Your Blueprint websites Content Management System (CMS).

Vodafone Business Product Management Group. Hosted Services EasySiteWizard Pro 8 User Guide

Quick Start Guide. 1 Copyright 2014 Samanage

Grandstream Networks, Inc.

Initial Setup of Microsoft Outlook 2011 with IMAP for OS X Lion

Outlook Web Application (OWA) Basic Training

Using Webmail. Technical Manual: User Guide. Document Updated: 1/07. The Webmail Window. Displaying and Hiding the Full Header.

SelectSurvey.NET Basic Training Class 1

Transcription:

Web Design and Development ACS-1809 Chapter 13 Using Forms 11/30/2015 1

Chapter 13: Employing Forms Understand the concept and uses of forms in web pages Create a basic form Validate the form content 11/30/2015 2

Form 11/30/2015 3

Basic Form Structure content goes here Input controls Ways for users to enter data Text inputs Check boxes Radio buttons Select menus File selects Buttons (submit/reset/push buttons) Hidden controls 11/30/2015 4

Text Input Text input Single line text input Please enter your name: <input type= text > Attributes Name identifies the text input control so that the data can be processed (Do not put space within) Size specifies the length of the text field (default is about 20) Maxlength max. number of characters that can be entered in this field Value initial text put in the field Placeholder describes the expected value of the input 11/30/2015 5

Text Input and others refer to Table 12-2 Text field for passwords The characters entered in this type of text input field will be displayed as bullets Enter your password: <input type= password name= password /> Text field for search boxes Enter your search here: <input type= search name= search placeholder= Enter your search here size= 50 /> 11/30/2015 6

Text Input Multiple-line text areas Please enter your comments here: <br /> <textarea name= comments >Your comments </textarea> If you want to give a specific dimension of the text area you can use cols rows Please enter your comments here: <br /> <textarea name= comments cols= 30 rows= 5 ></textarea> 11/30/2015 7

Text Input You can use overflow property in CSS to control whether the scroll bar should be displayed for the text area Overflow: scroll/overflow: auto To set the initial message in the text area, you can use placeholder but do not use the value attribute You can simply use the content between the opening tag and closing tag of the textarea as the initial value for the field 11/30/2015 8

Radio Buttons Small round buttons that enable users to select a single option from a list of choices. How would you like to be contact? <br /> <input type= radio name= contact value= email checked= checked > email <br /> <input type= radio name= contact value= phone > phone <br /> <input type= radio name= contact value= regular mail > phone <br /> All options use the same name so that browser knows they belong to the same group of radio buttons only one can be selected Attribute checked : selected by default 11/30/2015 9

Check Boxes Little boxes that can be turned on and off Multiple choices can be made here Which course(s) are you taking? <br /> <input type= checkbox name= course value= Java />Java<br /> <input type= checkbox name= course value= HTML />HTML<br /> <input type= checkbox name= course value= C++ />C++<br /> Again all names are the same Also you can use the checked attribute here 11/30/2015 10

Date and Time Input These are new input controls that only appear in HTML 5 They are Date Datetime Datetime-local Month Time Week Google Chrome, Opera, and Safari are the only browsers that support any of these new controls, and Opera is the only one that supports all six. The browser will display a text field if can t recognize it 11/30/2015 11

Date and Time Input What is your birthday?<br /> <input type= date ><br /><br /> When would you like your service to begin?<br / > <input type= datetime ><br /><br /> Please specify the date and time of the meeting:<br /> <input type= datetime-local ><br /><br /> Which week will you take off for vacation?<br /> <input type= week ><br /> Please specify your desired appointment time: <br /> <input type= time ><br /> 11/30/2015 12

Other Number Inputs These inputs can be used to simply designate a textbox as a number field and use some additional attributes to customize the input <input type= number min= 0 max= 12 step= 2 value= 8 > Please rate our service (10 is the best!):<br /> 1<input type= range min= 1 max= 10 step= 1 value= 5 >10 11/30/2015 13

Contact Methods They help identify certain types of contact methods Very useful for mobile devices as they could change the displayed keyboard on screen Type= Email url tel 11/30/2015 14

Color Selectors It gives users the ability to add color pickers to forms Shirt color: <input name= shirtcolor type= color > <br /><br /> Ink color: <input name= inkcolor type= color > <br /><br /> Many web browsers are not supporting this input type yet If not supported, the web browsers simply display the default text box 11/30/2015 15

Select Menus They let users select from a long list of options Also called drop-down menu Please pick your favorite color: <select name= favorite color size= 3 > <option value= blue >blue</option> <option value= green >green</option> <option value= red >red</option> </select> Use attribute multiple to enable selecting multiple items from the menu Use selected to set the default option 11/30/2015 16

Submenus optgroup element is used to divide long menus into groups of submenus Please pick the day/time that is best to call you: <select name= TimeDay > <optgroup label= Monday > <option value= Monday AM >Monday AM</option> <option value= Monday PM >Monday PM</option> </optgroup> <optgroup label= Tuesday > <option value= Tuesday AM > Tuesday AM</option> <option value= Tuesday PM > Tuesday PM</option> </optgroup> 11/30/2015 17

Disabled Form Elements Use these two attributes when you want to restrict a user s input for a specific element Readonly Disabled Your username is: <input value= www1234 name= UserName readonly> Your username is: <input value= www1234 name= UserName disabled> 11/30/2015 18

Hidden Fields Special marks that is not visible to the web users <input type= hidden name= formmark value= #0003 /> This value will be passed back to the web server when the form is submitted for processing 11/30/2015 19

File Upload You can use this type of input to upload a file to the server <input type= file name= photoupload /> 11/30/2015 20

Buttons Buttons are used to allow users to interact with the forms Three types of buttons Submit buttons <button type= submit >Submit</button> Reset buttons <button type= reset >Reset</button> Other buttons When pressed, an action or event is triggered, based on a predefined script or function <button type= button >Press Here</button> The buttons can be decorated with images <input type= image src= savenow.gif name= submit alt= send message > 11/30/2015 21