1 2 3 4 5 6 7 8 9
|
//Insertion dans la BDD, marche nickel
$query = sprintf("INSERT INTO `carte` ( `id`, `nom`, `prenom`, `societe`,`support`, `mail`, `reponse`, `representant`, `telephone`)
VALUES ('', %s, %s, %s, %s, %s, %s, %s, %s);", quoteSmart($nom), quoteSmart($prenom), quoteSmart($societe), quoteSmart($support), quoteSmart($email), quoteSmart($rep), quoteSmart($representant), quoteSmart($tel));
...
//Construction du formulaire
<input type="text" name="nom" value="<?php echo "$nom" ?>" size="40" maxlength="30" /> |
Partager