0
I retrieve the form information with foreach
foreach($_POST as $chave=>$valor){
$_SESSION[$chave] = $conexao-> real_escape_string($valor);
}
what it produces
$_SESSION[nome]
SESSION[sobrenome]
etc......
and do INSERT
thus without returning any kind of error
VALUES(
'$_SESSION[nome]',
'$_SESSION[sobrenome]',
...............
$confirma = $conexao->query....
But by destroying the Sesssions in the following way
if($confirma){
unset($_SESSION[nome],
$_SESSION[sobrenome],
..............
returns several errors, one for each Session, for example
PHP Warning: Use of undefined constant nome - assumed 'nome' (this will throw an Error in a future version of PHP) in