1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
$tab_poids = $_POST['poids'];
$tab_nom = $_POST['nom'];
$tab_prenom = $_POST['prenom'];
$tab_adresse = $_POST['adresse'];
$tab_CP = $_POST['code_postal'];
$tab_ville = $_POST['ville'];
$tab_tel = $_POST['telephone'];
foreach($tab_poids as $poids){
foreach($tab_nom as $nom){
foreach($tab_prenom as $prenom){
foreach($tab_adresse as $adresse){
foreach($tab_CP as $codep){
foreach($tab_ville as $ville){
foreach($tab_tel as $tel){
$req_insert = mysql_query("INSERT INTO colis(colis_id,groupement_id,poidscolis,nomdest,prenomdest,adressedest,codepostaldest,villedest,telephonedest,maildest,etatlivraison) VALUES('','','".$poids."','".$nom."','".$prenom."','".$adresse."','".$codep."','".$ville."','".$tel."','tata@free.fr','0')") or die(mysql_error());
}
}
}
}
}
}
}
?> |
Partager