$num_travaux = $_POST['num_travaux']; $date_appel = $_POST['date_appel']; $heure_appel = $_POST['heure_appel']; $probleme = $_POST['probleme']; $nom_interloc = $_POST['nom_interloc']; $service = $_POST['service']; $phone = $_POST['phone']; for( $i=0; $i < sizeof($num_travaux); $i++) { echo "ligne ".$i. " Num trav=".$num_travaux[$i]. " heure = ".$heure_appel[$i]; //etc .. }
/* impression.php ******************************** µ/ <html> <head> , LISTE DE VOS NOUVELLES DEMANDES , ---- Retour </head> <form method="POST" action="liste_demande_travaux_selection.php"> <center> Intervention, Date appel, Heure, Probleme, Nom, Service, Tél., <?php include(\"z_root.php\"); $link= mysql_connect($serveur,$login,$pass); mysql_select_db($database,$link); $sql ='SELECT phone,num_travaux,date_appel,heure_appel,probleme,tfi2003_cat.nom AS service,tfi2003_contacts.nom AS nom_interloc FROM tfi2003_cat,tfi2003_contacts,type_travaux,travaux WHERE tfi2003_cat.id_cat=travaux.num_service AND type_travaux.id_type=travaux.num_type AND travaux.id_contact_inter=tfi2003_contacts.id_contact and num_statut=1'; $req = mysql_query($sql) or die(\"Erreur Requete\".mysql_error()); while ($data = mysql_fetch_assoc($req)){ @ereg(\"([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})\", $data['date_appel'], $date); $date_appel=$date[3].\"/\".$date[2].\"/\".$date[1]; ?> ---- " /><?php echo $data['num_travaux'];?> , "> , "> , "> , "> , "> , "> , </form> <?php } ?> </html> ************************************** page liste_demande_travaux_selection.php ************************************** <html> <head> <?php $num_travaux = $_POST['num_travaux']; $date_appel = $_POST['date_appel']; $heure_appel = $_POST['heure_appel']; $probleme = $_POST['probleme']; $nom_interloc = $_POST['nom_interloc']; $service = $_POST['service']; $phone = $_POST['phone']; ?> </head> <center> Intervention, Date appel, Heure, Probleme, Nom, Service, Tél., <form> <?php // deboguage du contenu de numtravea echo ''; print_r($num_travaux); echo ' '; for($i=0; $i < count($num_travaux);$i++) { ?> ---- " name="checkbox[]"> , "> , "> , "> , "> , "> , "> , <?php } ?> </form> </html>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<?php SESSION_START(); include("z_fond.php"); ?> <html> <head> , LISTE DE VOS NOUVELLES DEMANDES , ---- Retour </head> <form method="POST" action="liste_demande_travaux_selection.php"> <center> Intervention, Date appel, Heure, Probleme, Nom, Service, Tél., <?php include(\"z_root.php\"); $link= mysql_connect($serveur,$login,$pass); mysql_select_db($database,$link); $sql ='SELECT phone,num_travaux,date_appel,heure_appel,probleme,tfi2003_cat.nom AS service,tfi2003_contacts.nom AS nom_interloc FROM tfi2003_cat,tfi2003_contacts,type_travaux,travaux WHERE tfi2003_cat.id_cat=travaux.num_service AND type_travaux.id_type=travaux.num_type AND travaux.id_contact_inter=tfi2003_contacts.id_contact and num_statut=1'; $req = mysql_query($sql) or die(\"Erreur Requete\".mysql_error()); while ($data = mysql_fetch_assoc($req)){ @ereg(\"([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})\", $data['date_appel'], $date); $date_appel=$date[3].\"/\".$date[2].\"/\".$date[1]; ?> ---- " /><?php echo $data['num_travaux'];?> , "> , "> , "> , "> , "> , "> , </form> <?php } ?> </html>
<?php SESSION_START(); include("z_fond.php"); ?> <html> <head> <?php $num_travaux = $_POST['num_travaux']; $date_appel = $_POST['date_appel']; $heure_appel = $_POST['heure_appel']; $probleme = $_POST['probleme']; $nom_interloc = $_POST['nom_interloc']; $service = $_POST['service']; $phone = $_POST['phone']; ?> </head> <center> Intervention, Date appel, Heure, Probleme, Nom, Service, Tél., <form> <?php // deboguage du contenu de numtravea echo ''; print_r($num_travaux); echo ' '; for($i=0; $i < count($num_travaux);$i++) { ?> ---- " , "> , "> , "> , "> , "> , "> , <?php } ?> </form> </html>