Advertisement
JoanMarcos

Untitled

Sep 25th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. <?php
  2.  
  3.     include_once ('../Classes/Participante.php');
  4.     include_once ('../Classes/Revisor.php');
  5.  
  6.  
  7.     $Revisor = new Revisor();
  8.     $Participante = new Participante();
  9.  
  10.     if (isset($_POST['CadastrarUsuario'])){
  11.         if ($_POST['TipoUsuario'] == 'Revisor') {
  12.             if ($Revisor->queryAddUsuario($_POST) == 'ok')
  13.                 echo 'CADASTRADO COM SUCESSO';
  14.             else
  15.                 echo 'ERRO REVISOR';
  16.         }
  17.         if ($Participante->queryAddUsuario($_POST) == 'ok')
  18.             echo 'CADASTRADO COM SUCESSO O PARTICIPANTE';
  19.         else
  20.             echo 'ERRO PARTICIPANTE';
  21.     }
  22.  
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement