search and replace in your text editor would do great, if this is what you are talking about....
anyway you should get into the habit of using include() in your code when you have redundant code in numerous pages, so that when you change something in login.inc.php, it will change in every location you used include 'login.inc.php';