1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| $nomentreprise = htmlentities($_POST['nomentreprise']);
$contact = htmlentities($_POST['contact']);
$email = htmlentities($_POST['email']);
$ville = htmlentities($_POST['ville']);
$login = htmlentities($_POST['login']);
$password = htmlentities($_POST['password']);
$domaine = htmlentities($_POST['domaine']);
$domaine1 = htmlentities($_POST['domaine1']);
$domaine2 = htmlentities($_POST['domaine2']);
$domaine3 = htmlentities($_POST['domaine3']);
$domaine4 = htmlentities($_POST['domaine4']);
$legal = htmlentities($_POST['legal']);
$local = htmlentities($_POST['local']);
$livraison = htmlentities($_POST['livraison']);
$date = htmlentities($_POST['date']);
require('config.php');
//$DB_base = mysqli_select_db( $link, "vision") or die("Selection de la base de données impossible");
$sql = "INSERT INTO fournisseur(nomentreprise,contact,email,ville,login,password,domaine,domaine1,domaine2,domaine3,domaine4,legal,local,livraison,date) VALUES('" . $_POST['nomentreprise'] . "','" . $_POST['contact'] . "','" . $_POST['email'] . "','" . $_POST['ville'] . "','" . $_POST['login'] . "','".hash('sha256', $password)."','" . $_POST['domaine'] . "','" . $_POST['domaine1'] . "','" . $_POST['domaine2'] . "','" . $_POST['domaine3'] . "','" . $_POST['domaine4'] . "','" . $_POST['legal'] . "','" . $_POST['local'] . "','" . $_POST['livraison'] . "','" . $_POST['date'] . "')"; |