if($_GET['image'] == "") { // no image specified echo "No image to display"; } else { $location = $_GET['location']; $image = $_GET['image']; print ""; } ?>