Form does not work on Chrome 69 but works on 68. What has changed?

-3

Why does not this simple form work on the new Chrome v69? What will I have to add or remove to work again?

<?php 

require('conISO.php');

if(isset($_POST['modelo'])){$modelo = $_POST['modelo'];}

if(!empty($_POST['cadastro']))
{
if(empty($modelo))
    {$caso = 'modelo';}
else
        {
        mysql_query("INSERT INTO multimarcas
        (MODELO)
        VALUES          ('$modelo')");
        $caso = "sucesso";
        }
    }
?> 

<!DOCTYPE HTML>
<html>
<head>
<title>ERP Smart</title>
</head>
<body>

<form action="TESTE.php" name="cadastro" method="post"> 
<table >
    <tr>
    <td>    
<?php 
    if(isset($caso)){
        switch($caso){
            case "modelo":
                echo "Atenção. Falta Modelo!";
                break;
            case "sucesso":
                echo "Parabéns. Produto cadastrado com sucesso!";
                break;
        }
    }
?>
</td>
    </tr>
    <td >
        <input  name="modelo" type="text">
  </td> 
    <td >
        <input name="cadastro" type="image" src="../img/REG.png" value="1">
    </td>
</tr>
</table>
</form> 

</body>
</html>
    
asked by anonymous 06.09.2018 / 15:01

1 answer

-2

Through this answer in the English Stack I was able to solve the problem.

  

Remove extra form data, if "value" attribute is present with   non-empty value for (removed) DOM As per spec,    link ,   the constructed "form data set" should not include the value of the   image button

    
14.09.2018 / 22:37