Correctly implement mvc in php

1

I'm starting now in php, I've done quite a bit in java before but with php I'm having some doubts.

This is my form.

  <form name="sentMessage" action="controller">
                    <div class="row">
                    <div class="col-md-2"></div>
                    <div class="col-md-8">
                            <div class="form-group">
                                <input type="text" class="form-control" name="cpf" placeholder="CPF *" id="CPF" required data-validation-required-message="Favor informe o seu CPF.">
                                <p class="help-block text-danger"></p>
                            </div>
                            <div class="form-group">
                                <input type="password" class="form-control" name="senha" placeholder="Sua senha *" id="senha" required data-validation-required-message="Favor informe sua senha">
                                <p class="help-block text-danger"></p>
                            </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6">
                                <input type="submit" class="btn btn-lg btn-primary btn-block" value="Entrar">
                            </div>
                        </div>
                    </div>
                    </div>
                </form>

I wanted to know how to pass the form data into the controller, I know that in Java I would create a class defined that the action would trigger this class and in the doPost method would take the information from the form and make the validations and redirects to the next page. Now there is the doubt in PHP. Could someone show an example of the correct way to do this? Thankful

    
asked by anonymous 04.04.2017 / 19:20

0 answers