creating proxy page - arcgis for JS samples

i am not quite sure if i should post this thread under ArcGIS API for JS or not, but since the sample that i am referring to is under this topic so i decided posting it here.

i've been trying to adapt the "Attribute Editing" (under Mobile folder) sample on my machine, so as to host it locally and not over esri server.

i had to create a proxy page as as mentioned in the sample documentation://This sample requires a proxy page to handle communications with the ArcGIS Server services. You will need to//replace the url below with the location of a proxy on your machine. See the 'Using the proxy page' help topic//for details on setting up a proxy page.