foreach ($HTTP_POST_VARS as $valor=>$key) { if(empty($_POST[$valor]) //no envia esta variable else //envia la vriable }