Possible Duplicate:
Getting those %#!^& signs in the footnote!
Here's my first version of a clever command for URL-footnotes. It combines pdftex's hyperlink behaviour with a \footnote displaying the URL.
\usepackage[pdftex]{hyperref}
\newcommand{\hrefn}[2]{\href{#1}{#2}\footnote{See {\tt #1}}} %HyperRef and Footnote in one
However it doesn't treat the input as verbatim as \href does. How do I prevent my command \hrefn from treating characters such as # and ~ as special control characters? I already \usepackage{underscore} so _ are not a problem.
/Nordlöw