Bonjour,

J'ai un souci sur un formulaire de contact, auriez vous la gentillesse de m'aider, j'ai l'impression d'avoir oublié quelque chose, merci

Code sur le bouton Send dans le flash:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
onClipEvent (load) {
    num = 1;
}
on (rollOver) {
    this.gotoAndPlay("s1");
    _parent.read_more_p2.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
    this.gotoAndPlay("s2");
    _parent.read_more_p2.gotoAndPlay("s2");
}


Code PHP
Code PHP : 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
<?php
//-----------------Getting data sent by flash---------------------
foreach ($_POST as $key => $value){
 
        if ($key != 'mail_to' && $key != 'smtp_server' && $key != 'smtp_port' && $key != 'mail_from' && $key != 'mail_subject' && $key != 'plain_text'){
 
            $mail_body .= '<b>'.str_replace('_',' ',$key).'</b>:<br/>';
 
            $mail_body .= ''.stripslashes($value).'<br/>';
        }
}
//-----------------------------------------------------------------
 
 
 
$message = '<html><body>'.$mail_body.'</body></html>'; //  mail body
 
//------------if plain text is set to true removing html tags------
if ($_POST['plain_text']=='true') {
 
    $message = str_replace('<br/>',"\r\n", $message);
 
    $message = strip_tags($message);
 
//------------------------------------------------------------------
} else {
//----otherwise composing message headers---------------------------
    $headers  = 'MIME-Version: 1.0' . "\r\n";
 
    $headers .= 'Content-type: text/html; charset=windows-1251' . "\r\n";
//------------------------------------------------------------------
}
 
//------------setting conf data-------------------------------------
$to = $_POST['mail_to'];
 
$from = $_POST['mail_from'];
 
$subject = $_POST['mail_subject'];
 
$smtp_server = $_POST['smtp_server'];
 
$smtp_port = $_POST['smtp_port'];
//------------------------------------------------------------------
 
//---------setting header info--------------------------------------
 
 
$headers .= 'From:' .$from;
//------------------------------------------------------------------
 
 
if (mail($to, $subject, $message, $headers)){ // sending mail
 
    print('&mail=1');  //succes
 
} else {
 
    print('&mail=0');//failure
 
}
 
?>