I'm trying to develop a website using MVC. I've got my HTML form (view), a js controller which is called when pressing "submit" and then I need to pass the data (including the password) to a php file (model) where the password will be hashed, salted and saved in the database.
I'm not sure I'm doing this the right way. Is it possible to pass values from my js file to the php file in a secured way?