how do you install win xp with out a cd drive or operating system?

ive got no operating system no cd drive on the computer i want win xp but i have a computer with win xp on and a cd drive i might be able to do it using usb.

Lots and lots of floppies.
The standard method is to load the windows installer on a flash drive. You'll need access to another computer, your windows CD, and BartPE. As long as your computer can boot from a flash drive, this will work.

Here's a guide.

You can also buy or borrow a USB optical (dvd/cd/blueray etc..) drive. If you intend to purchase games in the near future, or play movies... it'd be great to have one. Even if you're only using it for this one task, you might consider buying one and returning it later.