OK heres possibility. when you installed windows files on partition, & formated, it does 15 sec restart bar, then recycles off & starts up.
DO NOT HIT KEYBOARD WHEN IT SAYS INSTALL FROM DISC, LET MACHINE GO TO NEXT STEP ON ITS own, JUST KEEP YOUR FINGERS OFF MACHINE ENTIRELY, ESPECIALLY KEYBOARD.
THATS BECAUSE YOU HAVE ALREADY INSTALLED WINDOWS & BY NOT HITTING KEYBOARD, NEW INSTALL GOES INTO & skips BOOT MENU & where THEN WINDOWS NEXT STEPS OF INSTALL START, FINAL STUFF. IN FACT AS IT RECYCLES, ONCE YOU BECOME FAMILAR WITH NOT HITTING ANY KEY TO INSTALL WINDOWS once installed windows (WHICH would ERASE INSTALL YOU JUST DID), YOU CAN OPEN BIOS IN SPLASH SCREEN, RESET BOOT TO HDD, NOT CD-DVD, & THEN IT WON'T EVEN ASK ABOUT HITTING ANY KEY TO INSTALL FROM DISC.
Howevereven if you reset bios correctly it might not work & lose everything. so best just put up with screen of hitting any key & DO NOT HIT ANY KEY OR TOUCH ANYTHING, THEN boot up new install mext steps begin. then you'll see keyboard & other nextstuff to install further from memory image of xp now on computer being loaded in.
if all you get is blank screen, try microsft forum for xp or mainboard manufacturer forum, as your issues may be old computer or bios thats confused, instead of reinstall, Actual xp image is located on ram or temporay memory stick until second time thru complete fresh install,
also cut new HDD up into partitions of 100 mb or 1/4 or size of HDD whichever is larger. do all partitons if activation automatic works & activates, get updates & install drivers from mainboard disc or mainboard manufacturers website under support drivers for that specific mainboard
worst is might merely have parts machine. worst yet, new HDD certainly prevent activation, Maybe Put in Your OLd HDD that came with computer when you gadit. no activation= leaving you with new install every 30 days.
its hard on old equipemnt, perhaps new HDD isn't correctly in bios, not listed as master or using master only as slave, maybe two hdd dongle with both on it, far one is master.check plastic jumpers on back & make sure you have master & if two second slae, try changing them.
soon computer will be so mixed up, it just quit. simplfy everything, take off anything extra & start with as little to confuse as possible. maybe put floppy in floppy drive or not if its in. really tricky thing that is very individual to circumstances. don't underestimate complete disassembly, freeze & reassemble just cpu, stick memoru, One master hdd, key & mouse & monitor. you'll need to understand fron on/off swtich &reset positions, on mainboards power pin switch panel. don't burden it with usb devices, printers etc in critical loss situation, nor even speakers. do that with driver install..
freeze machine in freezer chest with trash bag tied. larger scale of transistors might reset them or reinstall bios from internet, maybe newer version, reset bios to default & clear cmos. or buy new mainboard, you'll be stuck at activation window paying for xp full bore, so maybe jsut entirely new machine from used retail outlet, where cost is about same as software itself & has all new numbers. if start new, fill every hdd space before firsat activation, wait to inatall more partitons with disc & number now asigned to your machine for few days. few partitons per day.
Signed
HYSICIAN THOMAS STEWART von DRASHEK M.D.