What does the signature of your editpass function look like? Unless you’ve done something weird with routing, you should be able to just use function editpass($id) and the 15 will be in the $id variable.
Here is my editpass function, it allows a user to change its password and username with a form.
I made i like the default edit function of the UsersController and as you can see i did let the $id = null