I have written a related article entitled introduction to affiliate marketing that explains the whole concept. In short, the process is as follows...