Have you checked out some of the other topics - I am sure there is a topic explaining it all.
I believe you put another key in the ignition and turn the key to position 2, put the drivers window down (just in case).
Close and lock the doors with the key and then press the lock button on the fob, then unlock the doors and press the unlock button, then opne the boot with the key and press the boot unlock button.
I believe there should be a beep when you click the fob button to confirm that it has programmed.