How do you Use Action Replay On the DS?

The reason for the action replay is basically for you to have cheat codes for your ds but in order for them to work is for you to look up action replay codes and figure out how to enter them into your action replay card