You're into a common problem. You have placed a hard drive with Win XP already installed from another computer into this old one and it can't boot from that drive.
What too many people fail to realize is that, whenever an OS (like Win XP) is installed, it is customized for the machine it's on at that time. Windows cannot work without software drivers for all of the hardware devices in the machine it is installed on. Part of the Install process is to search around the machine, identify all those hardware devices, and make sure the drivers for them are copied to the HDD and set up to load automatically as part of Windows on that machine.
So now you have moved such a drive to a different machine. It has all those drivers for the PREVIOUS machine/s devices, and is likely missing some drivers for the machine (your old one) you moved it into. How to fix? Often it can be done with a Repair Install.
To do this you need a Win XP Install CD for the version of Win XP already on that HDD. You put it into the optical drive and boot from it as if you were going to Install Win XP. BUT DO NOT INSTALL! Instead, look through the initial menus for the Repair Install option and run this. The process re-does the inventory of hardware devices on the machine it is now running in, compares that to the drivers in the Win XP already on the HDD, and fixes all the mismatches. If it works, when you are finished you will be able to boot from that HDD into Win XP on your old machine.