Book description
Today's Web programmers are required to understand and use the tools and skills for both client and server-side programming. Web Programming and Internet Technologies: An E-Commerce Approach provides an accessible, comprehensive introduction to creating fully functioning websites with e-commerce capabilities. Ideal for the one-term course, or as a self-learning guide for professionals, the authors weave a continuing case study of a real-world commercial enterprise throughout the text that gradually grows in sophistication. Introductory chapters ask readers to create a simple website that uses the basic features of XHTML. Readers will continue to modify and expand their early work, creating a centralized mechanism for changing the look and feel of the site via cascading style sheets, and incorporating JavaScript, PHP, MySQL, and much more. A CD-ROM is included with every new printed copy of the text and includes complete and pre-tested XHTML and CSS markup for all web pages discussed, as well as all associated JavaScript and PHP scripts, and the data for setting up the MySQL database. With its hands-on, active-learning approach, students using this new full-color text will see, and experience first-hand, the many levels and capabilities of programming for the world wide web.
Key Features:
-Based on a real business model, this text provides a comprehensive introduction to all aspects of creating a complete website with e-commerce capabilities.
-Uses a project-based approach that asks readers to develop a website whose functionality will parallel that of the real-world case study in the text.
-Includes examples and screen shots of real websites throughout for readers to reference.
-Presents and utilizes maintstream and relevant open-source and widely used technologies: XHTML, CSS, JavaScript, PHP, MySQL, XML, and more.
-Every chapter concludes with a collection of activities to assure the reader has a full understanding of the chapter material. These activities include: quick questions to test the readers basic knowledge of the content; short exercises to improve basic understanding; 'exercises on the parallel project' that guide the reader through creating his/her own fully functional commercial website; a section titled 'What Else You May Want or Need to Know', containing additional information relevant to the chapter; and finally, a reference section with links to websites for further details and explanations of the topics covered in the chapter.
-The accompanying CD-ROM contains complete and pre-tested XHTML and CSS markup for all web pages discussed in teh text, as well as all associated JavaScript and PHP scripts, and the data for setting up the MySQL database (eBook version doe not include the CD-ROM).
Table of contents
- Cover
- Title Page
- Copyright
- Contents
- Dedication
- Preface
- Typographic and Other Conventions
-
1 Setting the Scene
- 1.1 Overview and Objectives
- 1.2 What Is the Internet?
- 1.3 What Is the World Wide Web (WWW)?
- 1.4 What Is Meant by a Client-Server Architecture?
- 1.5 How Do Web Browsers and Web Servers Fit the Client-Server Model?
- 1.6 How Do Web Browsers and Web Servers Communicate?
- 1.7 A Real-World E-Commerce Website
- 1.8 What Are the Technologies We Will Discuss?
- 1.9 Summary
- 1.10 Quick Questions to Test Your Basic Knowledge
- 1.11 Short Exercises to Improve Your Basic Understanding
- 1.12 Exercises on the Parallel Project
- 1.13 What Else You May Want or Need to Know
- 1.14 References
-
2 Establishing a Web Presence
- 2.1 Overview and Objectives
- 2.2 What Is an Internet Service Provider (ISP)?
- 2.3 What Tools Will You Need to Begin Your Web Development?
- 2.4 How Do You Create a Simple, Static Web Page?
- 2.5 How Do You Test a Web Page “Offline” Before “Going Live”?
- 2.6 How Do You “Go Live” on the Web Once You’re Ready?
- 2.7 Summary
- 2.8 Quick Questions to Test Your Basic Knowledge
- 2.9 Short Exercises to Improve Your Basic Understanding
- 2.10 Exercises on the Parallel Project
- 2.11 What Else You May Want or Need to Know
- 2.12 References
-
3 XHTML for Content Structure
- 3.1 Overview and Objectives
- 3.2 Once There Was HTML, Now There Is XHTML
- 3.3 A Very Important Distinction: Structure vs. Presentation
- 3.4 XHTML Tags and Elements
- 3.5 What Is the Basic Structure of Every Web Page?
- 3.6 Some Basic Markup: Headings, Paragraphs, Line Breaks, and Lists
- 3.7 Tables, Images, and Tag Attributes
- 3.8 XHTML Entities
- 3.9 Adding More Web Pages to Our Site and Connecting Them with Hyperlinks
- 3.10 Using Server Side Includes (SSI) to Make Common Markup Available to Multiple Documents
- 3.11 What Does It Mean for a Web Page to Be Valid?
- 3.12 How Can We Determine if a Web Page Is Valid?
- 3.13 Summary
- 3.14 Quick Questions to Test Your Basic Knowledge
- 3.15 Short Exercises to Improve Your Basic Understanding
- 3.16 Exercises on the Parallel Project
- 3.17 What Else You May Want or Need to Know
- 3.18 References
-
4 CSS for Content Presentation
- 4.1 Overview and Objectives
- 4.2 Why CSS?
- 4.3 Simple CSS Style Rules and Their Syntax
- 4.4 Where Do You Place Your CSS Style Rules?
- 4.5 A Simple Example
- 4.6 Some Basic CSS Markup: More on Selectors, Declarations, Properties, and Property Values
- 4.7 Some Common Types of CSS Property Values and Their Formats
- 4.8 CSS Style Sheet Structure, Comments, and Formatting
- 4.9 The XHTML class and id Attributes and the XHTML div and span Elements
- 4.10 What About the “Cascading” Part of Cascading Style Sheets?
- 4.11 The CSS Box Model and Simple CSS Page Layout
- 4.12 CSS Reset: A “Best Practice”
- 4.13 Styling Our Nature’s Source Website with CSS
- 4.14 Validating Our CSS Style Sheets
- 4.15 Summary
- 4.16 Quick Questions to Test Your Basic Knowledge
- 4.17 Short Exercises to Improve Your Basic Understanding
- 4.18 Exercises on the Parallel Project
- 4.19 What Else You May Want or Need to Know
- 4.20 References
-
5 XHTML Forms for Data Collection and Submission
- 5.1 Overview and Objectives
- 5.2 Forms for Collecting User Input Data in the Browser and Sending It to the Server for Processing
- 5.3 The form Element
- 5.4 The input Element
- 5.5 The select and option Elements for Dropdown List-Boxes
- 5.6 What Is Missing from the BMI Calculator Web Page?
- 5.7 The textarea Element
- 5.8 The submit and reset Button Elements
- 5.9 Organizing Form Controls with the fieldset and legend Elements
- 5.10 Using the label Element for Behind-the-Scenes Logical Groupings
- 5.11 Getting Ready to Submit Your Form Data
- 5.12 Summary
- 5.13 Quick Questions to Test Your Basic Knowledge
- 5.14 Short Exercises to Improve Your Basic Understanding
- 5.15 Exercises on the Parallel Project
- 5.16 What Else You May Want or Need to Know
- 5.17 References
-
6 JavaScript for Client-Side Computation and Data Validation
- 6.1 Overview and Objectives
- 6.2 Another Important Distinction: Structure vs. Presentation vs. Behavior
- 6.3 What Is JavaScript? (It’s not Java!)
- 6.4 A Simple JavaScript Example: User Notification with an Embedded Script
- 6.5 Where Do You Place Your JavaScript Code?
- 6.6 What Is the Document Object Model (DOM)?
- 6.7 How Do JavaScript and the DOM Interact?
- 6.8 The Importance of Website Security
-
6.9 How Can JavaScript Help Address the Security Issue?
- 6.9.1 A First Look at JavaScript Arrays (in the Context of the DOM)
- 6.9.2 Accessing DOM Elements for the Purpose of Validating User Input
- 6.9.3 Evaluating Compound Boolean Expressions
- 6.9.4 Functions for Validating Numerical Input
- 6.9.5 Functions for Validating String Input: A First Look at Regular Expressions in JavaScript
- 6.10 Calculating the BMI: Numerical Calculations in JavaScript
- 6.11 JavaScript and Regular Expressions
- 6.12 Summary
- 6.13 Quick Questions to Test Your Basic Knowledge
- 6.14 Short Exercises to Improve Your Basic Understanding
- 6.15 Exercises on the Parallel Project
- 6.16 What Else You May Want or Need to Know
- 6.17 References
-
7 JavaScript for Client-Side Content Behavior
- 7.1 Overview and Objectives
- 7.2 A Revised Home Page with a “Slide Show” of Rotating Images and Dropdown Menu Options
- 7.3 Implementing Our “Slide Show” of Rotating Images
- 7.4 Implementing Our Dropdown Menus
- 7.5 The Footer Menu
- 7.6 Notes on the nature2 Version of Our Nature’s Source Site
- 7.7 Summary
- 7.8 Quick Questions to Test Your Basic Knowledge
- 7.9 Short Exercises to Improve Your Basic Understanding
- 7.10 Exercises on the Parallel Project
- 7.11 What Else You May Want or Need to Know
- 7.12 References
-
8 PHP for Server-Side Preprocessing
- 8.1 Overview and Objectives
- 8.2 Some PHP History
- 8.3 PHP as a Server-Side Scripting Language
- 8.4 PHP Script Structure and General Syntax: A Simple Example
- 8.5 PHP Development and Testing
- 8.6 Incorporating the Welcome Message into Our Home Page
-
8.7 Implementing the Server-Side Functionality of Our Feedback Form
- 8.7.1 What Happens When the User Clicks Send Feedback
- 8.7.2 Uploading the Feedback Form Data from the Client to the Server
- 8.7.3 An Overview of the PHP Code that Processes the Feedback Form Data
- 8.7.4 Building the Feedback Message to the Business with PHP String Literals and the $_POST Array Values
- 8.7.5 Sending the Feedback Message to the Business with PHP’s mail() Function
- 8.7.6 Modifying the Previous Message to the Business to Get One Suitable for the Client
- 8.7.7 Sending the Confirmation Message to the Client with mail()
- 8.7.8 Returning the Browser Display for Immediate Confirmation of Feedback Submission to the User
- 8.7.9 Saving the User’s Feedback on the Server with PHP File Output
-
8.8 Revising the Implementation of Our BMI Calculator
- 8.8.1 What Happens When the User Clicks Compute your BMI
- 8.8.2 Uploading the BMI Form Data from the Client to the Server
- 8.8.3 An Overview of the PHP Code that Processes the BMI Form Data
- 8.8.4 Building the BMI Report Message with Programmer-Defined PHP Functions
- 8.8.5 Computing the BMI Value: Numerical Computations in PHP and More Programmer-Defined Functions
- 8.8.6 Building and Sending an XHTML-Encoded E-mail BMI Report to the User with Another Programmer-Defined Function
- 8.9 Summary
- 8.10 Quick Questions to Test Your Basic Knowledge
- 8.11 Short Exercises to Improve Your Basic Understanding
- 8.12 Exercises on the Parallel Project
- 8.13 What Else You May Want or Need to Know
- 8.14 References
-
9 MySQL for Server-Side Data Storage
- 9.1 Overview and Objectives
- 9.2 Relational Databases
- 9.3 Database Design Goals
- 9.4 Some Architectural Aspects of a “Good” Database
- 9.5 Make Use of Online Resources and Don’t Reinvent the Wheel
- 9.6 The Data Model for Our Nature’s Source Database
- 9.7 Using SQL and phpMyAdmin to Set Up the MySQL Database
- 9.8 MySQL’s Command-Line Interface
- 9.9 Importing and Exporting Tables and Databases
- 9.10 Summary
- 9.11 Quick Questions to Test Your Basic Knowledge
- 9.12 Short Exercises to Improve Your Basic Understanding
- 9.13 Exercises on the Parallel Project
- 9.14 What Else You May Want or Need to Know
- 9.15 References
-
10 PHP and MySQL for Client-Server Database Interaction
- 10.1 Overview and Objectives
- 10.2 PHP and MySQL
- 10.3 Registration
- 10.4 Logging In and Logging Out
- 10.5 An E-Store Session After a Successful Login
- 10.6 Browsing Our E-Store Product Catalog
-
10.7 Purchasing Products
- 10.7.1 A High-Level View of the processPurchase.php Script
- 10.7.2 Recalling the Relevant Tables in Our Database Structure
- 10.7.3 Getting the Product Details of an Existing Order with the getExistingOrder() Function
- 10.7.4 Creating a New Order with the createOrder() Function
- 10.7.5 Displaying the Header and Footer of the Shopping Cart Table with the displayHeader() and displayFooter() Functions
- 10.7.6 Displaying the Product Information in the Shopping Cart with the displayFirstFourColumns(), displayExistingItem(), and displayNewItem() Functions
- 10.7.7 Adding an Item to the Shopping Cart
- 10.7.8 Deleting an Item from the Shopping Cart
- 10.8 Checkout
- 10.9 Summary
- 10.10 Quick Questions to Test Your Basic Knowledge
- 10.11 Short Exercises to Improve Your Basic Understanding
- 10.12 Exercises on the Parallel Project
- 10.13 What Else You May Want or Need to Know
- 10.14 References
-
11 XML (eXtensible Markup Language) for Data Description
- 11.1 Overview and Objectives
- 11.2 The Basic Rules of XML
- 11.3 Describing Our Data with Well-Formed XML
- 11.4 Viewing Our Raw (Unstyled) XML Data in a Browser
- 11.5 Validating Our XML Data with a Document Type Definition
- 11.6 Styling Our XML Data with CSS
- 11.7 Isolating Our XML Tag Sets within XML Namespaces
- 11.8 Transforming Our XML Data with XSL, XSLT, and XPath
- 11.9 Summary
- 11.10 Quick Questions to Test Your Basic Knowledge
- 11.11 Short Exercises to Improve Your Basic Understanding
- 11.12 Exercises on the Parallel Project
- 11.13 What Else You May Want or Need to Know
- 11.14 References
-
12 Collecting, Analyzing, and Using Visitor Data
- 12.1 Overview and Objectives
- 12.2 Web-Server Access Logs
- 12.3 Analysis of Web-Server Access Logs
- 12.4 Caution in Interpreting Web-Server Access Logs
- 12.5 Summary
- 12.6 Quick Questions to Test Your Basic Knowledge
- 12.7 Short Exercises to Improve Your Basic Understanding
- 12.8 Exercises on the Parallel Project
- 12.9 What Else You Might Want or Need to Know
- 12.10 References
- List of Figures
- Index
- Credits
Product information
- Title: Web Programming and Internet Technologies: An E-Commerce Approach
- Author(s):
- Release date: February 2012
- Publisher(s): Jones & Bartlett Learning
- ISBN: 9781449686642
You might also like
book
Web Programming and Internet Technologies: An E-Commerce Approach, 2nd Edition
Web Programming and Internet Technologies: An E-Commerce Approach is written for the one-term web programming course …
book
E-Commerce, E-Business and E-Service
The 2014 International Conference on E-Commerce, E-Business and E-Service (EEE 2014) was held on May 1-2, …
book
The Internet of People, Things and Services
Internet consists of billions of digital devices, people, services and other physical objects with the potential …
book
Sams Teach Yourself E-Commerce Programming with ASP in 21 Days
The friendly, tutorial style of Sams Teach Yourself E-Commerce Programming with ASP in 21 Days empowers …