1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <form>
...
</form>
<?php
if (isset($_POST['valide'])){
$sql_quest = "INSERT INTO form_enquete ";
$sql_quest .= "(civilite, nom, prenom, age, serment, renouvellement, nomenclature, profession, activite, mail, membre, procedurale, technique, theme1, theme2, theme3, exp_j_cabinet, exp_j_dom, louer, presta_ext, envi_presta_ext, certification, appel_sapiteurs, inter_sapiteurs, logiciel, presta_rapport, proportion, exp_association, envi_exp_association, seduisant";
$sql_quest .= ") VALUES ";
$sql_quest .= "('$civilite', '$nom', '$prenom', '$age', '$serment', '$renouvellement', '$nomenclature', '$profession', '$activite', '$mail', '$membre', '$procedurale', '$technique', '$theme1', '$theme2', '$theme3', '$exp_j_cabinet', '$exp_j_dom', '$louer', '$presta_ext', '$envi_presta_ext', '$certification', '$appel_sapiteurs', '$inter_sapiteurs', '$logiciel', '$presta_rapport', '$proportion', '$exp_association', '$envi_exp_association', '$seduisant')";
mysql_query($sql_quest) or die(mysql_error());
// J'ai même essayé de couper en deux ma requête mais rien n'y fait.
// $sql_appr = "INSERT INTO form_enquete ";
// $sql_appr .= "(civilite, nom, prenom, age, serment, renouvellement, nomenclature, profession, activite, mail, membre, procedurale, technique, theme1, theme2, theme3, exp_j_cabinet, exp_j_dom, louer" ;
// $sql_appr .= ") VALUES ";
// $sql_appr .= "('$civilite', '$nom', '$prenom', '$age', '$serment', '$renouvellement', '$nomenclature', '$profession', '$activite', '$mail', '$membre', '$procedurale', '$technique', '$theme1', '$theme2', '$theme3', '$exp_j_cabinet', '$exp_j_dom', '$louer')" ;
// $sql_appr2 = "INSERT INTO form_enquete ";
// $sql_appr2 .= "(presta_ext, envi_presta_ext, certification, appel_sapiteurs, inter_sapiteurs, logiciel, presta_rapport, proportion, exp_association, envi_exp_association, seduisant" ;
// $sql_appr2 .= ") VALUES ";
// $sql_appr2 .= "('$presta_ext', '$envi_presta_ext', '$certification', '$appel_sapiteurs', '$inter_sapiteurs', '$logiciel', '$presta_rapport', '$proportion', '$exp_association', '$envi_exp_association', '$seduisant')" ;
}
?> |
Partager