$novoAluno->setVchNome($_POST["vchNome"]); } else { header("location:../index.php?str=erro"); } if (isset($_POST["intIdade"]) && $_POST['intIdade'] != '') { $novoAluno->setIntIdade($_POST["intIdade"]); } else { header("location:../index.php?str=erro"); } if (isset($_POST["vchCpf"]) && $_POST['vchCpf'] != '') { $novoAluno->setVchCpf($_POST["vchCpf"]); } else { header("location:../index.php?str=erro"); } if (isset($_POST["vchTelefone"]) && $_POST['vchTelefone'] != '') { $novoAluno->setVchTelefone($_POST["vchTelefone"]); } else { header("location:../index.php?str=erro"); } if (isset($_POST["vchEmail"])) { $novoAluno->setVchEmail($_POST["vchEmail"]); } else { header("location:../index.php?str=erro"); } ////// if (isset($_POST["bolSexo"]) && $_POST['bolSexo'] != '') { if ($_POST["bolSexo"] == "0") { $novoAluno->setBolSexo(0); } else { $novoAluno->setBolSexo(1); }