Make a folder with the name of the pack you want, put files in there, such as class files and/or png if you want a texture pack, then compress it and make sure all the stuff is in the root dir, and then boom. Basicly, you put a zip in there, and select it in game, and it replaces everything from minecraft.jar with that zip, directory for directory.
How to place your pack in the texture pack folder?