How to store data from serial to PROGMEM?

I have aslo found this:

http://www.arduino.cc/playground/Code/EEPROMWriteAnything

But cant work out how to use this for my purposes.. Any ideas?

Thanks