PHP 5 for Dummies Free Open Book

PHP 5 for Dummies

Previous PageNext Page
Chapter 11
Other Web Applications
In This Chapter
Passing information from page to page
Using cookies
Using hidden fields in HTML forms
Using PHP session functions
Adding JavaScript to PHP scripts
T
he simplest Web applications collect information from users in HTML forms
and then utilize the information by displaying it, storing it, or usingit in
conditional statements. (Some simple applications are shown in Chapter 10.)
However, Web applications can be much more complex than this. For example,
a shopping cart must collect different types of information; display this infor-
mation; keep track of what users have ordered; calculate prices, taxes, and
shipping; charge credit cards; and perform other tasks. Such complex appli-
cations consist of several scripts that share information. And applications
may also accept complete files from users rather than just information in a
form.
This chapter discusses the basics of these complex Web applications.
Overcoming Statelessness
HTML pages are stateless.That is, HTML pages are independent from one
another. When a user clicks a link, the Web server sends a new page to the
user’s browser, but the browser doesn’t know anything about the previous
page. As far as the browser knows, this could be the first Web page ever in
the history of the world. For static Web pages, where the user simply views a
document, statelessness works fine. However, many dynamic Web applications
need information to pass from page to page. For example, you may want to
save a user’s name and then display the name on another page.
The next few sections discuss methods of passing information from page 
to page.
Previous PageNext Page


     Main Menu
PHP 5 for Dummies
Table of Contents
Introduction
Part I: Say Hello to the PHP Scripting Language
Part II: Variables and Data
Part III: Basic PHP Programming
Part IV: Common PHP Applications
Destroying Objects - Page 215
Chapter 10: The Basics of Web Applications
Chapter 11: Other Web Applications
Navigating Web Sites with Multiple Pages
Moving Information from Page to Page
Uploading Files
Using JavaScript with PHP
Chapter 12: Storing Data with PHP
Chapter 13: PHP and Your Operating System
Chapter 14: PHP Extensions
Part V: The Part of Tens
Part VI: Appendixes
Index
Team DDU


More Books
PHP Hacks
Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
The Koran (Holy Qur'an)
Macromedia Flash 8 Bible
Search Engine Optimization for Dummies
YouTube Traffic
PHP 5 for Dummies
Harry Potter and The Chamber of Secrets
Harry Potter and the Sorcerer's Stone
The Pilgrim's Progress
Wireless Hacks
Flash Hacks. 100 Industrial-Strength Tips & Tools
PayPal Hacks. 100 Industrial-Strength Tips and Tools
Amazon Hacks
Pdf Hacks
The Da Vinci Code
Google Hacks
The Holy Bible
Windows XP For Dummies
Harry Potter and the Half-Blood Prince
Seo Book
Upgrading and Repairing Networks
Macromedia Dreamweaver 8 UNLEASHED
Windows XP Annoyances
Windows XP Hacks
Microsoft Windows XP Power Toolkit
Teach Yourself MS Office In 24Hours
iPod & iTunes Missing Manual
PC Hacks 100 Industrial-Strength Tips and Tools
PC Overclocking, Optimization, and Tuning - 2th Edition
PC Hardware In A Nutshell 3rd Edition
PC Hardware in a Nutshell, 2nd Edition
Upgrading and Repairing PCs
Google for Dummies
MySQL Cookbook
Teach Yourself Macromedia Flash 8 In 24 Hours
PHP CookBook
Sams Teach Yourself JavaScript in 24 Hours
PHP5 Manual
Free Games Paper Airplanes
500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele