This is because there are instances when the client wanted to change their domain name. So if that happens, to prevent re-coding links like that, we have to get current domain name programatically:
<a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/users/add/">
The Link
</a>
The Link
</a>
For FREE programming tutorials, click the red button below and subscribe! :)
website