  Let $\O$ be a smooth bounded domain in $\R^N$ with $N\ge 1$. In this paper we
study the Hardy-Poincar\'e inequality with weight function singular at the
boundary of $\O$. In particular we provide sufficient and necessary conditions
on the existence of minimizers.
