if($do=="image"){ if(empty($a)){ header("Location: $vboptions[bburl]/images/error.gif"); } else{ header("Location: $settings[imagelink]"); } }