Ciao a tutti.
Sto utilizzando questo fie php:
cancella.php
con questo formCodice PHP:<?php
require 'config.php';
require 'connect.php';
$cognome = $_POST['cognome'];
$query = "DELETE FROM utenti WHERE cognome='$cognome';
?>
Non da errori.Codice HTML:<html> <body> <form method="post" action="cancella.php"> Cognome: <input type="text" name="cognome" id="cognome" size="30" /><br /> <br /> <input type="submit" name="pulsante" value="Invia" /> </form> </body> </html>
Però nel database il record rimane, perchè?
Grazie.

LinkBack URL
About LinkBacks

