Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once ('../Classes/Participante.php');
- include_once ('../Classes/Revisor.php');
- $Revisor = new Revisor();
- $Participante = new Participante();
- if (isset($_POST['CadastrarUsuario'])){
- if ($_POST['TipoUsuario'] == 'Revisor') {
- if ($Revisor->queryAddUsuario($_POST) == 'ok')
- echo 'CADASTRADO COM SUCESSO';
- else
- echo 'ERRO REVISOR';
- }
- if ($Participante->queryAddUsuario($_POST) == 'ok')
- echo 'CADASTRADO COM SUCESSO O PARTICIPANTE';
- else
- echo 'ERRO PARTICIPANTE';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement