217
PHP
user and allows the user to go back to the home page to redo the search. If the search
succeeds, it posts a form that contains the user’s original inputs back to the client side
and asks the user to input additional purchasing data, including contact informa-
tion and copies of the software package. e command button on the postback form
activates Confirm.php program. e Confirm.php program (Listing7.15(d))
receives all purchasing data from the client and writes them to a data file named
PurchaseData.txt on the server. e data file can be used by the online store
for further processing. Upon the completion of the purchasing transaction, the client
receives a confirmation message on the screen.
Listing7.15(a): Example of Application Des ...