NMED 3850 A Advanced Online Design February 1, 2010 V. Mahadevan.

Slides:



Advertisements
Similar presentations
24-Aug-14 HTML Forms. 2 What are forms? is just another kind of HTML tag HTML forms are used to create (rather primitive) GUIs on Web pages Usually the.
Advertisements

CHAPTER 3 MORE ON FORM HANDLING INCLUDING MULTIPLE FILES WRITING FUNCTIONS.
Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
1 Introduction to HTML II อุทัย เซี่ยงเจ็น สำนักวิชาเทคโนโลยีสารสนเทศ และการสื่อสาร มหาวิทยาลัยนเรศวร พะเยา.
FORMs Lesson TBE 540. Prerequisites Before beginning this lesson, the learner must be able to… –Create basic web pages using a text editor and/or a web.
CIS101 Introduction to Computing Week 08. Agenda Your questions JavaScript text Resume project HTML Project Six This week online Next class.
HTML Form and PHP IST Review of Previous Class HTML table and PHP array Winner is chosen automatically using rand() function.
SE-2840 Dr. Mark L. Hornick 1 HTML input elements and forms.
Chapter 7 Using Advanced Cascading Style Sheets HTML5 & CSS 7 th Edition.
Computing Concepts Advanced HTML: Tables and Forms.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Python and Web Programming
XML & RDBMS By Molly Gumpert for: LIS 469: XML Fall 2014 Professor Gerry Benoit.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
ITM © Port, Kazman1 ITM 352 HTML Forms, Basic Form Processing.
Advance Database Management Systems Lab no. 5 PHP Web Pages.
Application Development Description and exemplification of server-side scripting language for server connection, database selection, execution of SQL queries.
4-Sep-15 HTML Forms Mrs. Goins Web Design Class. Parts of a Web Form A Form is an area that can contain Form Control/Elements. Each piece of information.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
HTML Forms What is a form.
INTERNET APPLICATION DEVELOPMENT For More visit:
Lecture 6 – Form processing (Part 1) SFDV3011 – Advanced Web Development 1.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
DAT602 Database Application Development Lecture 14 HTML.
Svetlin Nakov Telerik Corporation
1 Forms A form is the usual way that information is gotten from a browser to a server –HTML has tags to create a collection of objects that implement this.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Homework for October 2011 Nikolay Kostov Telerik Corporation
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
NMED 3850 A Advanced Online Design January 26, 2010 V. Mahadevan.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
HTML and FORMS.  A form is an area that can contain form elements.  Form elements are elements that allow the user to enter information (like text fields,
HTML Form and PHP IST Review of Previous Class HTML table and PHP array Winner is chosen randomly using rand() function.
Programming Assignment 3 Add forms in your web page so that visitors can add a comment about your web page – Example:
CHAPTER 7 Form & PHP. Introduction All of the following examples in this section will require two web pages. The first page retrieves information posted.
PHP Form Introduction Getting User Information Text Input.
HTML Form Teppo Räisänen LIIKE/OAMK Basic Structure of a HTML Form The element defining a form is ’form’ Form’s most important attributes are The.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Things we’ve covered so far  Basic HTML  Some advanced tags i.e.  Styling using CSS  Background-color  Text  Changing the font on your site  Inserting.
Web Forms. Survey or poll Contact us Sign up for an newsletter Register for an event Submit comments or feedback about our site Log in to a members-only.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Looking at various Rich Message options in KRAD Kuali University: Apply Now Lab : Rich Messages Lab Objectives Understand what Rich Messages are and how.
IT204 – Web Scripting and Authoring I Forms and Image Maps Unit 4.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML FORM Lab Exercise IST Guideline Add forms in your web page so that visitors can add a comment about your web page Forms should include the.
Learning Aim C.  In this section we will look at how text, tables, forms and frames can be used in web pages.
HTML FORM AND PHP IST 210: Organization of Data IST210 1.
Form Data (part 2) MIS 3502, Fall 2015 Brad N Greenwood, PhD Department of MIS Fox School of Business Temple University 11/10/2015 Slide 1.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
HTML Elements: Forms and Controls Chapter 9 B. Ramamurthy.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
FORMS Explained By: Jasdeep Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
Teaching slides Chapter 6. Chapter 6 Software user interface design & construction Contents Introduction Graphical user interface – Rich window based.
Creating and Processing Web Forms
Advanced HTML Tags:.
Form Data (part 2) MIS 3502, Fall 2015 Jeremy Shafer Department of MIS
Arrays: Checkboxes and Textareas
Validation and Building Small Apps
HTML Forms and User Input
Creating Forms on a Web Page
Presentation transcript:

NMED 3850 A Advanced Online Design February 1, 2010 V. Mahadevan

Some More Fundamentals  HTML user interfaces can consist of more than just text fields and buttons.  Various user interface components are:  Drop down menus.  Radio buttons.  Checkboxes.  Text areas.  You can encapsulate these components in your HTML forms (surround with tags) to make the input more intuitive and easier to understand.

Fundamentals (cont.)  Drop down menu: Eins Zwei Drei Vier Funf

Fundamentals (cont.)  Radio buttons: Zero One  Checkboxes: Eins: Zwei:

Fundamentals (cont.)  Text areas:  The values of the various UI components can be passed to a PHP script using the POST method, just like the content of the text fields we’ve used earlier.

PHP $_POST Processing  Remember the special array $_POST that captures the data from submitted HTML forms.  <?php $numbers = $_POST['numbers']; $binary = $_POST['binary']; $numbers2 = $_POST['numbers2']; $textarea = $_POST['tarea']; print $numbers; print " "; print $binary; print " "; print count($numbers2);

PHP $_POST Processing (cont.) print " "; foreach ($numbers2 as $item) { print $item; print " "; } print $textarea; print " "; ?>

PHP $_POST Processing (cont.)  You can also pass hidden form values to a PHP script from an HTML form:  HTML:   PHP:  $hiddendata = $_POST['hiddendata'];

PHP $_GET Processing  Sometimes you want to pass data to a PHP script without using a form.  For this, the GET method can be used instead of POST.  HTML:  PHP test  PHP:  $data1 = $_GET['somedata'];

Adding Style With PHP  Just like with HTML, when you generate HTML from within PHP you can attach a pre-existing CSS style sheet to it or use CSS styles in the HTML header.  HTML header with embedded style: print " "; print "body { background-color: green;}"; print " ";

Adding Style With PHP (cont.)  HTML header with an external stylesheet: print " ";  The stylesheet itself will contain only one line: body { background-color: green;}

Form Validation With PHP  Simple form validation can be done in PHP using by using “if” statements.  Example:  if ($_POST["last_name"]) == "") {  // print an error message }

Lab  Write PHP scripts that:  Generate an HTML user interface comprising various elements such as checkboxes, radio buttons, and drop down menus.  Perform form validation on the entered data.  Insert the data into a database table.  Retrieve and display the data from a database table. The final output must make use of a CSS style sheet.

References 