Specifications

FIGURE 19.4
The front end lets a user choose the button color and type in the required text.
Advanced PHP Techniques
P
ART IV
412
FIGURE 19.5
A button generated by the make_button.php script.
The button is generated by a script called make_button.php. This script is shown in
Listing 19.2.
LISTING 19.2 make_button.php This Script Can Be Called from the Form in
design_button.html or from Within an HTML Image Tag
<?
// check we have the appropriate variable data
// variables are button-text and color
24 7842 CH19 3/6/01 3:42 PM Page 412