1 An Introduction to Dreamweaver and PHP Part B: Some introductory PHP and JavaScript.

Slides:



Advertisements
Similar presentations
Chapter 1: Introduction. Contents Whats New in Dreamweaver CS4? The Dreamweaver CS4 Interface Setting Up a Site Creating a Web Page Adding Text to Your.
Advertisements

Introduction to JavaScript
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Introduction Headers & Footers. You will learn how to: Create, Format, Edit and Delete Create Different Header/Footer in a Document Create a First Page.
XP Information Technology Center - KFUPM1 Microsoft Office FrontPage 2003 Creating a Web Site.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic JavaScript: Introduction to Scripting.
Chapter 3 Tables and Page Layout
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Microsoft Office © Copyright William Rowan Objective By the end of this you will have being given a brief introduction to: Microsoft Word Microsoft.
Chapter 19 – Macromedia Dreamweaver MX 2004
Introduction to scripting
Guided Lesson.  In this lesson, you will learn how to modify existing bullets, insert new bulleted and numbered lists, select symbols as bullets, and.
FORMULAS AND FUNCTIONS AN INTRODUCTION. FORMULA BASICS All formulas begin with “=“ Simple/common formulas use:  * for multiplication  / for division.
1 An Introduction to Dreamweaver and PHP. 2 Goals Our goals are To become familiar with the Dreamweaver environment To introduce some basic HTML To introduce.
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.
Introduction to PHP and Server Side Technology. Slide 2 PHP History Created in 1995 PHP 5.0 is the current version It’s been around since 2004.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
Using Dreamweaver. Slide 1 Dreamweaver has 2 screens that do different things The Document window where you create your WebPages The Site window where.
DAT602 Database Application Development Lecture 14 HTML.
1 An Introduction to Dreamweaver and PHP. 2 Goals Our goals are To become familiar with the Dreamweaver environment To introduce some basic HTML To introduce.
1 Some Variations on Date Display 2 Print HTML Code What PHP prints will be placed into the file, and then the file is sent to the web client to be rendered.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
1 Macromedia Dreamweaver Outline Introduction Macromedia Dreamweaver Text Styles Images and Links Symbols and Lines Tables Forms Scripting in Dreamweaver.
Website Development with Dreamweaver
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
A little PHP. Enter the simple HTML code seen below.
PHP meets MySQL.
InDesign CS3 Lesson 4 ( Only pages ) Importing and Editing Text.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 1 1 Microsoft Office FrontPage 2003 Tutorial 1 – Creating a Web Site.
1 Forms. 2 Our goal is to design a form like that shown below.
Moodle with Style Integrating new technologies to empower learning and transform leadership.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
PHP Form Introduction Getting User Information Text Input.
CSD 340 (Blum)1 Using Visual Studio CSD 340 (Blum)2 Start/Microsoft Visual Studio 2005/Microsoft Visual Studio 2005.
Dr. Qusai Abuein1 Internet & WWW How to program Chap.(6) JavaScript:Introduction to Scripting.
CSD 340 (Blum)1 Starting JavaScript Homage to the Homage to the Square.
Introduction to JavaScript CS101 Introduction to Computing.
Introducing Python CS 4320, SPRING Lexical Structure Two aspects of Python syntax may be challenging to Java programmers Indenting ◦Indenting is.
1 PL\SQL Dev Templates. 2 TEMPLATE DEFINITION Whenever you create a new program unit, its initial contents are based upon a template which contains pre-defined.
Sahar Mosleh California State University San MarcosPage 1 JavaScript Basic.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Updated on: September 4, 2010 CIS67 Foundations for Creating Web Pages Professor Al Fichera.
Typing and Formatting a Research Paper WORD 2013.
CSD 340 (Blum)1 Starting JavaScript Homage to the Homage to the Square.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
Introduction into JavaScript Java 1 JavaScript JavaScript programs run from within an HTML document The statements that make up a program in an HTML.
Dreamweaver MX. 2 Tools for Code Editing (p. 366) n An HTML editor like Dreamweaver writes most of the code you need, but at times you will need to perform.
Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing a Line of Text in a Web Page 7.3 Another JavaScript.
More Oracle SQL Scripts. Highlight (but don’t open) authors table, got o External data Excel, and make an external spreadsheet with the data.
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
1 An Introduction to Dreamweaver and PHP Part C: Setting Dreamweaver up to handle file transferring FTP.
Learning Aim C.  In this section we will look at how text, tables, forms and frames can be used in web pages.
CSD 340 (Blum)1 Introducing Text Input elements and Ifs.
Building a Website: Layout Fall Overall Structure: Home Page Title Section Title Frame Picture UNCP Math Menu Content Footer Contact Information.
1 After completing this lesson, you will be able to: Build formulas. Copy formulas. Edit formulas. Use the SUM function and AutoSum. Use the Formula Palette.
Web and Multimedia Development Copyright © Genetic Computer School 2007WM LESSON OVERVIEW  Use of Tables  Creating Tables  Try It – 1  Creating.
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.
A little PHP. Enter the simple HTML code seen below.
© Ms. Masihi.  A Web page contains text and images that convey specific information to viewers.  To create a new web page, open Dreamweaver and select.
A little PHP.
Introduction to Scripting
WEB PROGRAMMING JavaScript.
JavaScript: Introduction to Scripting
Presentation transcript:

1 An Introduction to Dreamweaver and PHP Part B: Some introductory PHP and JavaScript

2 Entering Text In the remaining rows we will display the date using HTML, PHP and JavaScript. In the first column, enter the terms “HTML”, “PHP” and “JavaScript” respectively. –In Design view, place the cursor in the appropriate cell and type. –Or in Code view, identify the appropriate pair and type code between the tags.

3 Place the cursor in the second column, second row and go to Insert/Date on the menubar and use the dialog box to select the desired format.

4 HTML Date Code Version: just text. The file would have to be updated each day to display the correct date.

5 With the cursor in the second column of the third row, go to Insert/PHP Object/Code Block on the menubar.

6 Start typing PHP code print date(‘D, F j, Y g:i A’); Note the word print turned blue – it’s a keyword.

7 Webopedia keyword definition

8 Continue typing PHP code print date(‘D, F j, Y g:i A’); Note that not only does date turn blue to indicate that it is a keyword, but also after typing the opening parenthesis, a tip is displayed to inform you that a string corresponding to the date format is needed. The item in the square brackets is optional.

9 Finish typing print date(‘D, F j, Y g:i A’); Note that the format string is in single quotes and that Dreamweaver puts it in another color.

10 The semicolon delimiter A delimiter is some character or set of characters (code) that is used to determine where one thing ends and the next thing begins. PHP uses a semicolon to delimit statements. A statement is a small unit of code (an instruction) which has an established effect. We inserted a PHP code block – a block is a set of statements. –Here our block will only have one statement.

11 The functions print and date A function is a set of code with a name and a defined action. A function may need some information to perform its action – this information is sent by using arguments (data passed to the function). The arguments are usually placed in parentheses when the function is being called upon to perform its action. –The format string seen in the date is an argument. –The print function also has an argument (the thing to be printed) but it uses a different style with its argument simply following it on the line with no parentheses.

12 Go to Insert/PHP Object/Comment on the menubar

13 Anything typed between the /* and the */ will correspond to a PHP comment. This type of comment is known as a C-style multi-line comment because this was the way to designate a comment in the C programming language. Another style is to use two slashes // and anything following the two slashes on the same line is a comment.

14 Dreamweaver uses yet another color for comments.

15 The PHP icon Note that in Design, Dreamweaver inserts a PHP icon to indicate that there is PHP code in this portion of the page. This icon will not be seen by the viewer of the page.

16 Place the cursor in the 4 th row, 2 nd column, go to Insert/Tag. Choose HTML Tags and script in the dialog box. Click Insert.

17 Use the drop-down list to choose JavaScript as the language and text/javascript as the type. Click OK and then Close the previous dialog box.

18 Result: in which one places the JavaScript code

19 Enter the JavaScript code seen below for writing the date

20 References PHP for the World Wide Web, 2 nd edition, Larry Ullman, Peachpit Press,