Select (drop-down list) Inputs. Insert/Form/List Menu.

Slides:



Advertisements
Similar presentations
Creating Reports for a Database. Reports in Access are usually created when a repetitive task is performed regularly. For example when a business needs.
Advertisements

Microsoft Visual Basic: Reloaded Chapter Seven More on the Repetition Structure.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Chapter 6 Multiform Projects Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
CST JavaScript Validating Form Data with JavaScript.
The switch StatementtMyn1 The switch Statement Sometimes there can be a multiple-choice situation, in which you need to execute a particular set of statements.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
PHP Tutorials 02 Olarik Surinta Management Information System Faculty of Informatics.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
A Level Computing#BristolMet Session Objectives U2#S6 MUST identify different data types used in programming aka variable types SHOULD describe each data.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Microsoft Visual Basic 2008 CHAPTER NINE Using Arrays and File Handling.
Microsoft Visual Basic 2005 CHAPTER 9 Using Arrays and File Handling.
Using Arrays and File Handling
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
A little PHP. Enter the simple HTML code seen below.
PHP meets MySQL.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Activity 2 Building a survey form using Dreamweaver Procedure
Nonvisual Arrays and Recursion by Chris Brown under Prof. Susan Rodger Duke University June 2012.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
ListBox, ComboBox, Menu Chapter 5.4, ComboBox Control: Properties & Methods u Combines TextBox features with a short drop- down list  cboOne.AddItem(string)
1 Forms and Form elements CSD 340 McCoey. 2 Form Object Properties action Usually a call to a server elements encoding method post or get target Methods.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
1 Forms. 2 Our goal is to design a form like that shown below.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Multiform Projects.
XHTML & Forms. PHP and the WWW PHP and HTML forms – Forms are the main way users can interact with your PHP scrip Typical usage of the form tag in HTML.
PHP Form Introduction Getting User Information Text Input.
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
1 HTML Forms
Introduction to JavaScript CS101 Introduction to Computing.
Spreadsheet Data Tables Data Table 1 allows you to change one input variable’s value at a time and record the impact that the input assumption has on several.
Centric features In this presentation… –macro capabilities more sophisticated functionality –advanced macro features Inspector Debugging error trapping.
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
Copyright © Curt Hill More Components Varying the input of Dev-C++ Windows Programs.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
ASP.Net, Web Forms and Web Controls 1 Outline Session Tracking Cookies Session Tracking with HttpSessionState.
Chapter 7 P 1 Lists and Loops List boxes and combo boxes List box - list of items - useful for a list which does not change Combo box - list of items -
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 5.1 Test-Driving the Inventory Application.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Nonvisual Arrays by Chris Brown under Prof. Susan Rodger Duke University June 2012.
In this activity, we are going to type a simple Chinese sentence with Microsoft Word by Tsang-jei Input Method and Simplified Tsang-jei Input Method. 1Start.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
HTML Forms. A form is simply an area that can contain form fields. Form fields are objects that allow the visitor to enter information - for example text.
Creating Menus Menu Bar – behaves like standard Windows menus Can be used in place of or in addition to buttons to execute a procedure Menu items are controls.
JavaScript Arrays, Functions, and Forms George Mason University.
Radio Buttons. Input/Form/Radio Group Use the dialog to enter label and values for the radio buttons.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
21/03/ Working with Controls Text and List Boxes.
Subroutines (PrArith, Math,projCP1, PrAdrProc, PrAdrProcFunc) Please use speaker notes for additional information!
HTML FORM. Form HTML Forms are used to select different kinds of user input. HTML forms are used to pass data to a server. A form can contain input elements.
Lesson 5 Introduction to HTML Forms. Lesson 5 Forms A form is an area that can contain form elements. Form elements are elements that allow the user to.
Client-side (JavaScript) Validation. Associating a function with a click event – Part 1 Use the input tag’s onclick attribute to associate a function.
A little PHP. Enter the simple HTML code seen below.
A little PHP.
Chapter Topics 15.1 Graphical User Interfaces
Welcome with Ifs CSC 230 (Blum).
Chapter 15: GUI Applications & Event-Driven Programming
Presentation transcript:

Select (drop-down list) Inputs

Insert/Form/List Menu

Fill in dialog box

Right click on the drop-down list and select List Values Or just click on the List Values button in the Property Inspector

Add labels (shown) and values (hidden) and click the + button

Code View of Select (Drop-down list)

Simple select handler code

The value of the selected item is passed to the server

Using a switch statement to display different output based on user’s input

The switch statement A switch is a fancy version of an if used when there are several “cases” – various situations (sets of statements) that might be executed depending on the outcome of a single value. switch($session) In this case there are variations on the text printed based on the $session variable passed from the user using the POST method.

A case case "BB1_6_29": print " June 29, 10: :00 "; print " Blackboard Introduction covers the basics to get one started. "; print " Location: Olney 200 "; break; Starts with the keyword case Followed by the value signaling that case Followed by the statements to be executed in this case Followed by the keyword “break” to denote the end of the case and prevent them from running into each other

Result

Another approach using a array

Arrays An array is a set of related variables – in this case the set of strings that might be printed. The individual elements of the array are specified by their index or key – It’s usually referred to as an index if you use a number, e.g. 0, 1, 2, … –It’s usually called a key if you use a string, e.g. ‘BB1_6_29’, as done here

Specifying an element print " You have chosen $session. $workshops[$session]"; In the statement above the code $workshops[$session] refers to the element of the array that has the key that was sent by the user in the POST method.