Dreamweaver - Forms questionnaire, register, login, etc.

Slides:



Advertisements
Similar presentations
JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Advertisements

Dreamweaver Forms Overview. Forms – A Little Review Most user/webpage communication is one way, like this: Most user/webpage communication is one way,
Building the e-Zine. The e-Zine is in the form of a Website and must contain the following: Several pages, which must be linked, including an Information.
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
UNIT 12 LO4 BE ABLE TO CREATE WEBSITES Cambridge Technicals.
CIS101 Introduction to Computing Week 08. Agenda Your questions JavaScript text Resume project HTML Project Six This week online Next class.
How to Make a Web Page: A Crash Course in HTML programming.
Mark Dixon, SoCCE SOFT 131Page 1 20 – Web applications: HTML and Client-side code.
The Act Tab (Project). Please select a button to learn more. Welcome to the Project Act Tab. Here you can Add Team Members, provide and receive Feedback,
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
File Upload Instructions and Information The File Upload utility is used for transferring files too large to send through the system. How it Works:
New School Websites Teacher Pages. Visit the SCUSD Website for videos tutorials: For more information.
Oracle Method | Group Delivery Together. Free your energies New Supplier Registration.
Understanding HTML Style Sheets. What is a style?  A style is a rule that defines the appearance and position of text and graphics. It may define the.
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.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
A guide for UICET for using Wikispaces.  A wiki is a web page or collection of web pages that can be linked together as a website.  Wikis are often.
Web Design Dreamweaver Semester 2 ATBs. ATB #1 What is a web site?
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Additional Topics. Tutorial #9 Review – Forms Forms Legend and fieldset Fields Text Password Radio buttons, check box, text area, select lists Buttons.
Create an online booking system (login/registration)
Server-side Scripting Powering the webs favourite services.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
NetTech Solutions Working with Web Elements Lesson 6.
How to develop your website Chapter Websites Denise R. E. Copeland
Activity 2 Building a survey form using Dreamweaver Procedure
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
CO1552 Web Application Development HTML Forms, Events and an introduction to JavaScript.
Website Development with PHP and MySQL Saving Data.
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.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
CSC 2720 Building Web Applications Server-side Scripting with PHP.
CHAPTER 7 Form & PHP. Introduction All of the following examples in this section will require two web pages. The first page retrieves information posted.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
PHP Form Introduction Getting User Information Text Input.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
Introduction to JavaScript CS101 Introduction to Computing.
Forms Collecting Data CSS Class 5. Forms Create a form Add text box Add labels Add check boxes and radio buttons Build a drop-down list Group drop-down.
 Computer use language to communicate  A web browser will read these tags and translate it into what you actually see  Viewing Code of ESPN WebsiteESPN.
PHP “Personal Home Page Hypertext Pre-processor” (a recursive acronym) Allows you to create dynamic web pages and link web pages to a database.
PHP Error Handling & Reporting. Error Handling Never allow a default error message or error number returned by the mysql_error() and mysql_errno() functions.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition.
Starting BBEdit or Notepad and Opening the HTML File Start BBEdit or Notepad Select Open from the File Menu Open survey1.htm from the Public Folder.
Teacher Websites TALIA R. COTTON. Teacher Websites Log In  To log in to your teacher website  Select Staff only on EGHS Website  Type in your .
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
Since you’ll need a place for the user to enter a search query. Every form must have these basic components: – The submission type defined with the method.
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
Higher Computing Science Coding the Web: HTML, JavaScript, PHP and MySQL.
+ HTML Hypertext Markup Language. + Introducing HTML HTML is the language used in writing websites Open the “HTML Practice” link on the Daily Log Delete.
LOGIN PAGE Login Page Support CRM:
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
Learning Aim C.  In this section we will look at how text, tables, forms and frames can be used in web pages.
Creating Web Pages with Links, Images, and Embedded Style Sheets
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.
Introduction to HTML Hypertext Mark-up Language. HTML HTML = Hypertext Mark-up Language Is just plain simple text marked up by “tags” You can create a.
1 Journaling: Guide for Academic and Professional staff 2013.
Weebly is Your Friend. * To Enhance And Promote Your Curriculum * To Provide A Student Resource * Add Efficiency to Your Planning * Informational * Promote.
HTML HyperText Markup Language. 1.Introduction  HTML is used to describe web pages.  HTML stands for Hyper Text Markup Language.  Tim Berners-Lee and.
 Open the course to add an online class  Click on Add a Page (left side)  Type in a name  Click on Create  Click on the Content Tab  Click on Add.
Dreamweaver MX Lesson 14: Using Find and Replace.
Using the HTML and CSS Validation Services
Using Access and the Web
Counselor Portion of the Student Profile
References & Recommendations
You will need to click the login button here
Lesson 6: Web Forms.
References & Recommendations
Presentation transcript:

Dreamweaver - Forms questionnaire, register, login, etc.

Aim of Forms The aim of this presentation is to show you how to use forms on your web pages using HTML, JavaScript, CSS (Cascading Style Sheets) in Dreamweaver. Example uses of forms:Registering users Logging onto web pages Collecting survey data Allowing user to send a message to an address easily When user clicks send, theDisplayed on a web page immediately (e.g. blog) form data can be:Sent by to the web master (with form data attached) Written to small text file on the server (accessible by the web master) Written to a database, e.g. MySQL (Structured Query Language)

Example - Enquiry Form

Example – Form to post a statement on a website

Step 1 – create a tag The and tag enclose all the form boxes, buttons and drop down menyus. 1.In Dreamweaver, create a new page called form.html, or find a location to put the form in an existing page 2.Insert a tag by clicking Insert > Form > Form You can also look for the Insert window (Window > Insert)

Add fields, e.g. text field, check boxes, etc. Add a text input field to allow a user to enter a name.

Add 2 more text fields Add 2 more text fields to enter name of favourite film and favourite music

Work in Progress (WIP)

Insert a Submit button Insert a submit button by clicking Insert > Form > Button or using the Insert window

Form with button

Form Procssing Form Processing Edit the tag to include an action. Normally an action will call a server-side script to process the form data and send it to a file on the server, or to a database, or attach to an and send to the web master. Server-side scripts can be written in PHP. Alternatively, a third party source such as matic.com can be used to process the form. Response-o-matic offers a free service to process form data. However, you should ensure that confidential information is not processed by a third party for security. matic.com Add the location of the form processing script: “process.php” to the tag: action=“process.php” This will send the form data to a log file on the server so you can collect user data.

Create the form script process.php Create the form script using PHP (a web server scripting language) Please see code opposite. Copy and paste this into a blank document (in Dreamweaver or Notepad ++) Save as process.php (note the file extension PHP) <?php $file = "log.txt"; $handle = fopen($file, 'a'); $answer1 = $_POST["name"]; $answer2 = $_POST["film"]; $answer3 = $_POST["music"]; fwrite($handle, "Name: "); fwrite($handle, "$answer1 \n"); fwrite($handle, "Favourite film: "); fwrite($handle, "$answer2 \n"); fwrite($handle, "Favourite music: "); fwrite($handle, "$answer3 \n\n"); fclose($handle); echo "The information has been written to a log file."; ?> Click here to open the log file on the server

Upload form.html and process.php to server Upload your 2 pages form.html (for user input) and process.php to server Open form.html and test A third file log.txt will be created and ammended – a link to this file is provided in the process.php file The process.php file must be uploaded to the server in order to work