Bonjour à tous,
j'ai créé un formulaire flash qui envoie les infos par mail via un script PHP.
2 soucis se posent à moi :
1) Problème d'affichage du mail. Voici son contenu :
Objet : De <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Tahoma" SIZE="11" COLOR="#0089D6" LETTERSPACING="0" KERNING="0">TOTO</FONT></P></TEXTFORMAT>
Contenu : Votre societe: aaaa
Telephone: 0404040404
Message: message test
249863962.4236461648953090600.1225956739.1226569247.1226569567.33
249863962.1226505382.27.3.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=m
ysociety
249863962.2.10.1226569567
249863962
2) Quand il lance le script contact.php, une fenetre internet s'ouvre (celle du contact.php justement) mais est vide. Je ne souhaiterais pas qu'elle s'affiche.
PHP
Si vous pouviez m'aider, ce serait super.
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 <? Error_Reporting(E_ALL & ~E_NOTICE); while ($request = current($_REQUEST)) { if (key($_REQUEST)!='recipient') { $pre_array=split ("&777&", $request); $post_vars[key($_REQUEST)][0]=$pre_array[0]; $post_vars[key($_REQUEST)][1]=$pre_array[1]; } next($_REQUEST); } reset($post_vars); $subject="De ".$post_vars['your_name'][0]; $headers= "De: ".$post_vars['your_email'][0] ."\n"; $headers.='Content-type: text/html; charset=iso-8859-1'; $message=''; while ($mess = current($post_vars)) { if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) { $message.="<strong>".$mess[1]."</strong> ".$mess[0]."<br>"; } next($post_vars); } mail($_REQUEST['recipient'], $subject, " <html> <head> <title>Nouveau contact à partir du site internet</title> </head> <body> <br> ".$message." </body> </html>" , $headers); ?>
Merci d'avance.
Partager