There's an error that has been mysteriously over looked in Chapter 7. The
check_image.php file contains this declaration:
Code:
$image_caption = $_POST['image_caption'];
The variable
$image_caption is meant to contain the caption to include with your picture, which is entered into the text field next to "Image Name or Caption" in
upload_image.htm as shown in Figure 7-2 of the book (but in the code for
upload_image.htm, it says "Image
Title or Caption").
Anyway, near the end of
check_image.php, in the part that displays the picture's caption, instead of:
Code:
<strong><?php echo $image_name; ?></strong><br>
it should say:
Code:
<strong><?php echo $image_caption; ?></strong><br>