Specifications

Weve modified the form to include a quick way to obtain the customers shipping address.
You can see this form in Figure 2.1.
Storing and Retrieving Data
C
HAPTER 2
2
STORING AND
RETRIEVING DATA
51
The HTML and PHP scripts used in this chapter can be found in the chapter2/ folder
of this books CD-ROM.
NOTE
FIGURE 2.1
This version of the order form gets the customers shipping address.
The form field for the shipping address is called address. This gives us a variable we can
access as
$address when we process the form in PHP, assuming that we are using the short
style for form variables. Remember that the alternative would be either
$HTTP_GET_VARS[“address”] or $HTTP_POST_VARS[“address”] if you choose to use the long
form (see Chapter 1, PHP Crash Course, for details).
Well write each order that comes in to the same file. Then well construct a Web interface for
Bobs staff to view the orders that have been received.
04 7842 CH02 3/6/01 3:37 PM Page 51