generic PHP script for user modification