Are you talking about CWP or WebDirect?
There are CWP examples located in your filemaker server directory
FileMaker Server/examples/PHP/API Examples/editRecord.php
If you're talking WebDirect, that's pretty basic stuff and I'm not sure why you would need an example.
Obviously if it is web direct, you can set up a new layout where the specified user has had all the privileges removed.
There are many ways you could do the rest...
one might be to put global fields on it and a button which runs a script which adds the data to a new record then clears the fields.
You could also do it as PHP inside a web viewer...