Código:
<?php
    
if ($_POST['cadastrar']) {
    
$conn = @mysql_connect("localhost", "", "") or die
...