You should have already followed the Displaying a pop-up dialog using the built-in ThickBox plugin recipe to have a starting point for this recipe. Alternatively, you can get the resulting code (Chapter 9/ch9-pop-up-dialog/ch9-pop-up-dialog-v1.php) from the code bundle and rename the file as ch9-pop-up-dialog.php.