To use a DNA code in Spore, open the cheat console by pressing Ctrl + Shift + C, then type in the code.
Once entered, the code takes effect in your game. This console is the standard way to input cheats and codes throughout Spore.