Bonjour
je veux ouvirir un popup qui recupère des données par la méthode post
Pouvez vous m'aider merci en avence
Bonjour
je veux ouvirir un popup qui recupère des données par la méthode post
Pouvez vous m'aider merci en avence
Code : Sélectionner tout - Visualiser dans une fenêtre à part <form action="dest.php" method="post" target="_blank">
merci pour votre reponce mais c'est pas ça
je v'ai résolut le problème en integrant le code javascrit suivant
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66 <script language="javascript" type="text/javascript"> function pop_it(the_form) { my_form = eval(the_form) window.open("<?php echo ROOT_URL; ?>/modules/mails/envoi.php", "popup", "height=440,width=640,menubar='no',toolbar='no',location='no',status='no',scrollbars='no'"); my_form.action = "<?php echo ROOT_URL; ?>/modules/mails/envoi.php"; my_form.target = "popup"; my_form.submit(); } </script> <!-- HTML --> <div class="left_side"> <form method="post" name="frm"> <div class="droite"> <select name="courrier_type"> <?php foreach($modeles as $k => $v) { ?><option value="<?php echo $v['mid'];?>"><?php echo $v['intitule']; ?></option><?php } ?> </select> <input type="submit" onclick="frm.action='<?php echo ROOT_URL; ?>/modules/courriers/generer.php';frm.target='_blank'" name="submit" value="Generer PDF"> | <input type="submit" onclick="pop_it(frm);" value="Envoyer Mail"> | <input type="button" name="btn" value="Cocher" onclick="cocher(frm);" /> </div> <hr /> <table> <tr> <th>Code</th> <th>Etat</th> <th>Famille</th> <th>Abonné</th> <th>Ville</th> <?php if(isset($abonnes[0]['soc']) && strlen($abonnes[0]['soc']) > 0) echo '<th>SOC</th>'; ?> <th>Choix</th> </tr> <tr> <td colspan="7"><hr /></td> </tr> <?php foreach($abonnes as $k => $v) { ?> <tr> <td class="center"><a href="<?php echo ROOT_URL; ?>/modules/cpadmin/fiche-abonne.php?usercode=<?php echo $v['code']; ?>"><?php echo substr($v['code'],0,6); ?></a></td> <td class="center"><?php echo $v['etat']; ?></td> <td class="center"><?php echo $v['famille']; ?></td> <td><?php echo htmlentities($v['raisonsociale']); ?></td> <td><?php echo htmlentities($v['ville']); ?></td> <?php if(isset($v['soc']) && strlen($v['soc']) > 0) echo '<td class="center">'.$v['soc'].'</td>'; ?> <td class="center"><input type="checkbox" name="clients[]" id="<?php echo $v['code'];?>" value="<?php echo $v['code'];?>" /></td> </tr> <?php } ?> </form> </table> </div>
Croise les doigts pour ne pas tomber sur des utilisateurs allergiques au JavaScript![]()
Partager