E correto enviar dados desta forma e seguro ?
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>PHP OO</title>
</head>
<body>
<form method="POST">
<p>Nome: <input type="texto" name="nome"></p>
<p>Sobrenome: <input type="texto" name="Sobrenome"></p>
<button type="submit" name="ENVIAOK">Cadastrar</button>
</form>
<?php
if (isset($_POST['ENVIAOK'])):
$nome = $_POST['nome'];
$sobrenome = $_POST['sobrenome'];
$cadastrar = new Registrar();
$cadastrar->InsertDados($nome,$sobrenome);
endif;
?>
</body>
</html>Discussão (2)
Carregando comentários...