I purchased an additional Central locking remote for a ZZE122R Corolla (Approx 2003-2007) and thought id paste the programming instructions here just in case anyone needs it.
This Instruction is for the One Button Genuine Toyota Remote.
Step 1 - Open Drivers side door (all other doors need to be closed)
Step 2- On the existing remote, press the "Lock/Unlock" button twice.
Step 3 - Insert the key in the ignition
Step 4- Turn the key from "OFF" to "ON" 20 times Finishing it at "OFF", the Hazard lights should flash 20 times if successful
i - The key needs to be turned 20 times really quickly (in approximately10-12 Seconds)
ii - Do not start the engine or remove the key from the ignition when performing step 4 or else you will need to start from step 1 again.
iii - If the Hazard lights do not flash up to 20 times after you have turned the key 20 times, start again from step 1. Otherwise continue with Step 5.
Step 5 - After the Hazard lights stop flashing (upto 20 times) press and hold the "Unlock/Lock" button on the NEW remote for two seconds then do the same on the existing remote.
Step 6 - To save the above, turn Key from "OFF" to "ON", then Back to "OFF", then remove key, close the driver door and test the buttons on the remote.
Hope this helps.