php - MVC for web development: Sign-up form? -


How do I go about implementing a registration form using the MVC pattern for the website (I use PHP Am doing)?

I think the controller should get the postal data first, then maybe some transfer may be required with the model (if the user successfully indicates) then I think the signup form view will be called , And will be passed in the value whether signup was successful or not.

I need help in content:

  • How can I perform the input validation (i.e. proper email address formatting)?

  • Is my remaining details okay?

  • How will you go about making an MVC website signup form?

how do I verify the input (i.e. the proper email Address formatting)? How do I check that the user name is unique?

It should also go in the controller. Most MVC frameworks have a verification class.

Is the rest of my details correct?

Yes, you are in accordance with MVC standards.

How do you get an MVC website signup form?

When the form is submitted, it processes and becomes valid in the controller, and the model is called in the database to save user information from the controller to the controller on the specified page. After calling the redirect to send the user.


Comments