one more thing. I think this may be the problem but cannot be sure.$nome = isset($_POST['nome'])?$_POST['nome']:null;If you have a field with a null value, in the database you may have checked NOT NULL and this may be causing the problem.

faust wrote:one more thing. I think this may be the problem but cannot be sure.$nome = isset($_POST['nome'])?$_POST['nome']:null;If you have a field with a null value, in the database you may have checked NOT NULL and this may be causing the problem.

Faust, I realized the changes u request , but simply when I press the submit button nothing happens.

3. Agrees with faust. Indiscriminately Inserting null values may cause a problem. Use: DESCRIBE yourtable; to check for NOT NULL. You can run this from the MySQL CLI; phpMyAdmin

OK I fixed my code, but give erro:0: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '','wesley.heron@hospitalsaodomingos.com.br','91622037','003922','Palestra 1')' at line 2