<?php
$Societe = $_POST['Societe'];
$Nom = $_POST['Nom'];
$Prenom = $_POST['Prenom'];
$Adresse = $_POST['Adresse'];
$Code_postal = $_POST['Code_postal'];
$Ville = $_POST['Ville'];
$email = $_POST['email'];
$Tel_portable = $_POST['Tel_portable'];
$Tel_Fixe = $_POST['Tel_Fixe'];
$Adresse_de_depart = $_POST['Adresse_de_depart'];
$Adresse_de_destination = $_POST['Adresse_de_destination'];
$Heure_de_depart_souhaitee = $_POST['Heure_de_depart_souhaitee'];
$Commentaires = $_POST['Commentaire'];
$content = $Societe."".$Nom;
$content = $content . $Prenom."".$Adresse;
$content = $content . $Code_postal."".$Ville;
$content = $content . $email."".$Tel_portable;
$content = $content . $Tel_fixe."".$Adresse_de_depart;
$content = $content . $Adresse_de_destination."".$Heure_de_depart_souhaitee;
$content = $content . $Commentaires;
mail("[email protected]", "SITE ".$name, "Envoyé par $content;= \r\n");
?>
après rectif message d'erreur quand je clique sur le site:
Code : Tout sélectionner
( ! ) Notice: Undefined index: Societe in C:\wamp\www\tests\traitement.php on line 2
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Nom in C:\wamp\www\tests\traitement.php on line 3
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Prenom in C:\wamp\www\tests\traitement.php on line 4
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Adresse in C:\wamp\www\tests\traitement.php on line 5
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Code_postal in C:\wamp\www\tests\traitement.php on line 6
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Ville in C:\wamp\www\tests\traitement.php on line 7
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: email in C:\wamp\www\tests\traitement.php on line 8
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Tel_portable in C:\wamp\www\tests\traitement.php on line 9
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Tel_Fixe in C:\wamp\www\tests\traitement.php on line 10
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Adresse_de_depart in C:\wamp\www\tests\traitement.php on line 11
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Adresse_de_destination in C:\wamp\www\tests\traitement.php on line 12
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Heure_de_depart_souhaitee in C:\wamp\www\tests\traitement.php on line 13
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Commentaire in C:\wamp\www\tests\traitement.php on line 14
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined variable: Tel_fixe in C:\wamp\www\tests\traitement.php on line 19
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined variable: name in C:\wamp\www\tests\traitement.php on line 23
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\tests\traitement.php on line 23
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
2 0.0380 147296 mail ( ) ..\traitement.php:23
[php]<?php
$Societe = $_POST['Societe'];
$Nom = $_POST['Nom'];
$Prenom = $_POST['Prenom'];
$Adresse = $_POST['Adresse'];
$Code_postal = $_POST['Code_postal'];
$Ville = $_POST['Ville'];
$email = $_POST['email'];
$Tel_portable = $_POST['Tel_portable'];
$Tel_Fixe = $_POST['Tel_Fixe'];
$Adresse_de_depart = $_POST['Adresse_de_depart'];
$Adresse_de_destination = $_POST['Adresse_de_destination'];
$Heure_de_depart_souhaitee = $_POST['Heure_de_depart_souhaitee'];
$Commentaires = $_POST['Commentaire'];
$content = $Societe."".$Nom;
$content = $content . $Prenom."".$Adresse;
$content = $content . $Code_postal."".$Ville;
$content = $content . $email."".$Tel_portable;
$content = $content . $Tel_fixe."".$Adresse_de_depart;
$content = $content . $Adresse_de_destination."".$Heure_de_depart_souhaitee;
$content = $content . $Commentaires;
mail("
[email protected]", "SITE ".$name, "Envoyé par $content;= \r\n");
?>[/php]
après rectif message d'erreur quand je clique sur le site:
[code]
( ! ) Notice: Undefined index: Societe in C:\wamp\www\tests\traitement.php on line 2
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Nom in C:\wamp\www\tests\traitement.php on line 3
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Prenom in C:\wamp\www\tests\traitement.php on line 4
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Adresse in C:\wamp\www\tests\traitement.php on line 5
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Code_postal in C:\wamp\www\tests\traitement.php on line 6
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Ville in C:\wamp\www\tests\traitement.php on line 7
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: email in C:\wamp\www\tests\traitement.php on line 8
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Tel_portable in C:\wamp\www\tests\traitement.php on line 9
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Tel_Fixe in C:\wamp\www\tests\traitement.php on line 10
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Adresse_de_depart in C:\wamp\www\tests\traitement.php on line 11
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Adresse_de_destination in C:\wamp\www\tests\traitement.php on line 12
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Heure_de_depart_souhaitee in C:\wamp\www\tests\traitement.php on line 13
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined index: Commentaire in C:\wamp\www\tests\traitement.php on line 14
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined variable: Tel_fixe in C:\wamp\www\tests\traitement.php on line 19
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Notice: Undefined variable: name in C:\wamp\www\tests\traitement.php on line 23
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
( ! ) Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\tests\traitement.php on line 23
Call Stack
#
Time
Memory
Function
Location
1 0.0040 145784 {main}( ) ..\traitement.php:0
2 0.0380 147296 mail ( ) ..\traitement.php:23[/code]