Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $path = dirname( __FILE__ );
  2.  
  3. require_once( $path . '/class/historico_class.php');
  4.  
  5. $historico = new Historico();
  6. if(isset($_POST['esporte']))
  7. {
  8. $esporte = $_POST['esporte'];
  9. $diabete = $_POST['diabete'];
  10. $medicamentos = $_POST['medicamentos'];
  11. $rh = $_POST['rh'];
  12. $p_arterial = $_POST['p_arterial'];
  13. //$saude_m = $_POST['saude_m'];
  14. $fuma = $_POST['fuma'];
  15. $bebe = $_POST['bebe'];
  16. $drogas = $_POST['drogas'];
  17. $cirurgia = $_POST['cirurgia'];
  18. $queloide = $_POST['queloide'];
  19. $hepatite = $_POST['hepatite'];
  20. $pdt = $_POST['pdt'];
  21. $alergia = $_POST['alergia'];
  22.  
  23. $historico->esporte = $esporte;
  24. $historico->diabete = $diabete;
  25. $historico->medicamentos = $medicamentos;
  26. $historico->rh = $rh;
  27. $historico->p_arterial = $p_arterial;
  28. //$historico->saude_m = $saude_m;
  29. $historico->fuma = $fuma;
  30. $historico->bebe = $bebe;
  31. $historico->drogas = $drogas;
  32. $historico->cirurgia = $cirurgia;
  33. $historico->queloide = $queloide;
  34. $historico->hepatite = $hepatite;
  35. $historico->pdt = $pdt;
  36. $historico->alergia = $alergia;
  37.  
  38. $historico->insert();
  39.  
  40. echo 'ok, <a href="home.php">voltar</a>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement