Creating editable Map with OpenLayers
To be able to edit the data you might want to look at the WFS-T technology.
Here is a nice tutorial for OpenLayers with GeoServer and PostGIS.
Note that you don't have to use PostGIS if you don't want to, this works also with simply loading some shape files to GeoServer.