Mon problème me paraît énorme, mais comme je n'arrive pas à le corriger, je me tourne vers le forum.
J'ai le formulaire suivant :et avec l'action suivante (action_phpmailer.php) :
Code html : 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 <form name="form_phpmailer" action="action_phpmailer.php" method="post" enctype="text/plain"> <table> <tbody> <tr> <td>Votre e-mail : </td> <td><font face="arial" size="3"><b><input name="mail" size="20" maxlength="30" value="" type="text"></b></font></td> </tr> ... <tr> <td colspan="2"><input value="Envoyer" type="submit"></td> </tr> </tbody> </table> </form>et le echo donne :
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 require_once 'phpmailer/class.phpmailer.php'; $dest=$_POST['mail']; $subject=$_POST['subject']; $msg=$_POST['msg']; echo "dest=".$dest." subject=".$subject." msg=".$msg."<br/>"; $mail = new PHPMailer(true); ...donc en gros, la transmission par "post" ne marche pas. Pourquoi ?dest= subject= msg=
Partager