Précédent   Forum des professionnels en informatique > PHP > Langage > Formulaires
Formulaires Forum d'entraide sur les formulaires avec PHP. Avant de poster -> FAQ formulaires, Cours de formulaires et Sources de formulaires
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 07/03/2007, 15h03   #1
Membre émérite
 
Avatar de FraK
 
Homme
Développeur Java
Inscription : juin 2005
Messages : 819
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 27
Localisation : France, Loire Atlantique (Pays de la Loire)

Informations professionnelles :
Activité : Développeur Java
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : juin 2005
Messages : 819
Points : 817
Points : 817
Envoyer un message via MSN à FraK
Par défaut problème pour affichage de données

re salut à tous
peut etre est-ce parce que je suis malade et tres fatigué que je ne vois pas l'erreur
mais apres 1h à me casser le cerveau (et c'est pas juste une image) dessus
je vois vraiment pas :/

je vous met donc les 3 pages concernées en plus de l'erreur produite.


» ok.php
Code :
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
<? include("config.php"); ?>
<?
// si les champs sont remplis
if(!empty($_REQUEST['societe']) && !empty($_REQUEST['nom']) && !empty($_REQUEST['adresse']) && !empty($_REQUEST['activite']) && !empty($_REQUEST['cp']) && !empty($_REQUEST['ville']) && !empty($_REQUEST['tel']) && !empty($_REQUEST['fax']) && !empty($_REQUEST['email']) && !empty($_REQUEST['ref1']) && !empty($_REQUEST['qte1']) && !empty($_REQUEST['visu1']) && !empty($_REQUEST['ref2']) && !empty($_REQUEST['qte2']) && !empty($_REQUEST['visu2']) && !empty($_REQUEST['ref3']) && !empty($_REQUEST['qte3']) && !empty($_REQUEST['visu3']) && !empty($_REQUEST['ref4']) && !empty($_REQUEST['qte4']) && !empty($_REQUEST['visu4']) && !empty($_REQUEST['ref5']) && !empty($_REQUEST['qte5']) && !empty($_REQUEST['visu5']) && !empty($_REQUEST['ref6']) && !empty($_REQUEST['qte6']) && !empty($_REQUEST['visu6']) && !empty($_REQUEST['ref7']) && !empty($_REQUEST['qte7']) && !empty($_REQUEST['visu7']) && !empty($_REQUEST['ref8']) && !empty($_REQUEST['qte8']) && !empty($_REQUEST['visu8']) && !empty($_REQUEST['ref9']) && !empty($_REQUEST['qte9']) && !empty($_REQUEST['visu9']) && !empty($_REQUEST['ref10']) && !empty($_REQUEST['qte10']) && !empty($_REQUEST['visu10'])){ 
  echo'
<html>
<head>
<title>blabla</title>
</head>
<body bgcolor="#FFFFFF">
<center>Merci ', htmlentities($_REQUEST['societe']),',<br><br>Votre message nous a bien été envoyé.<br>Voici les informations que vous avez entré :<br><br>
<b>Sujet du mail :</b> Demande de tarifs <br>
<b>Votre société :</b> ', htmlentities($_REQUEST['societe']),'<br>
<b>Votre adresse :</b> ', htmlentities($_REQUEST['adresse']),'<br>
<b>Votre code postal :</b> ', htmlentities($_REQUEST['cp']),'<br>
<b>Votre ville :</b>', htmlentities($_REQUEST['ville']),'<br>
<b>Votre nom :</b> ', htmlentities($_REQUEST['nom']),'<br>
<b>Votre numéro de téléphone :</b> ', htmlentities($_REQUEST['tel']),'<br>
<b>Votre numéro de fax :</b> ', htmlentities($_REQUEST['fax']),'<br>
<b>Votre demande de devis :</b><br> Produit : ', htmlentities($_REQUEST['ref1']),' - Quantité : ', htmlentities($_REQUEST['qte1']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu1']),'<br>
Produit : ', htmlentities($_REQUEST['ref2']),' - Quantité : ', htmlentities($_REQUEST['qte2']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu2']),'<br>
Produit : ', htmlentities($_REQUEST['ref3']),' - Quantité : ', htmlentities($_REQUEST['qte3']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu3']),'<br>
Produit : ', htmlentities($_REQUEST['ref4']),' - Quantité : ', htmlentities($_REQUEST['qte4']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu4']),'<br>
Produit : ', htmlentities($_REQUEST['ref5']),' - Quantité : ', htmlentities($_REQUEST['qte5']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu5']),'<br>
Produit : ', htmlentities($_REQUEST['ref6']),' - Quantité : ', htmlentities($_REQUEST['qte6']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu6']),'<br>
Produit : ', htmlentities($_REQUEST['ref7']),' - Quantité : ', htmlentities($_REQUEST['qte7']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu7']),'<br>
Produit : ', htmlentities($_REQUEST['ref8']),' - Quantité : ', htmlentities($_REQUEST['qte8']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu8']),'<br>
Produit : ', htmlentities($_REQUEST['ref9']),' - Quantité : ', htmlentities($_REQUEST['qte9']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu9']),'<br>
Produit : ', htmlentities($_REQUEST['ref10']),' - Quantité : ', htmlentities($_REQUEST['qte10']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu10']),'<br>
 
<b>Votre adresse email :</b>', htmlentities($_REQUEST['email']),'<br>
<br>
 
<br><br>Vous allez recevoir une E-mail de confirmation.<br>Après ceci, nous vous répondrons dans les plus bref délais.<br><br>A très bientôt ...
<br><br><br><font size="2"></font></center>
</body>
</html>
  ';
}else{
  echo '
<html>
<head>
<title>Erreur, formulaire pas envoyé</title>
</head>
<body bgcolor="#FFFFFF">
<center>
Désolé, une erreur est survenue.<br>Vous devez remplir correctement tous les champs !<br><br><br> [ <a href="#" onClick="history.back()">Retour</a> ]
<br><br><br><font size="2"></a></font>
</body>
</html>
  ';
}
?>
» config.php
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
// DEBUT DE LA CONFIGURATION
$prenomw = ("blabla"); // Votre Prénom
$sitew =("http://www.blabla.fr"); // Url de votre site
$emailw  = "info@blabla.fr";
$sujet = "Demande de tarifs";
// FIN DE LA CONFIGURATION
?>
<?
// NE MODIFIEZ PAS CE QUI SUIT ! LE SCRIPT POURRAIT NE PAS FONCTIONNER !
mail(
"$emailw",
"$sujet",
"Demande de devis sur $prenomw,\n.\nVoici les informations de l'internaute :\n\nSociété : $societe\nNom : $nom\nAdresse : $adresse\nCode postal : $cp\nVille : $ville\nTéléphone : $tel\n Fax : $fax\nEmail : $email\n\n------ DEVIS ------\n\nProduit : $ref1 +++ Quantité : $qte1 +++ Visuel : $visu1\nProduit : $ref2 +++ Quantité : $qte2 +++ Visuel : $visu2\nProduit : $ref3 +++ Quantité : $qte3 +++ Visuel : $visu3\nProduit : $ref4 +++ Quantité : $qte4 +++ Visuel : $visu4\nProduit : $ref5 +++ Quantité : $qte5 +++ Visuel : $visu5\nProduit : $ref6 +++ Quantité : $qte6 +++ Visuel : $visu6\nProduit : $ref7 +++ Quantité : $qte7 +++ Visuel : $visu7\nProduit : $ref8 +++ Quantité : $qte8 +++ Visuel : $visu8\nProduit : $ref9 +++ Quantité : $qte9 +++ Visuel : $visu9\nProduit : $ref10 +++ Quantité : $qte10 +++ Visuel : $visu10\n");
?>
<?
// NE MODIFIEZ PAS CE QUI SUIT ! LE SCRIPT POURRAIT NE PAS FONCTIONNER ! 
mail(
"$email",
"$sujet",
"Vous recevez ce message car vous nous avez rempli le formulaire de demande de tarifs de : $sitew.\n\n\nSociété : $societe\nNom : $nom\nAdresse : $adresse\nCode postal : $cp\nVille : $ville\nTéléphone : $tel\n Fax : $fax\nEmail : $email\n\n------ DEVIS ------\n\nProduit : $ref1 +++ Quantité : $qte1 +++ Visuel : $visu1\nProduit : $ref2 +++ Quantité : $qte2 +++ Visuel : $visu2\nProduit : $ref3 +++ Quantité : $qte3 +++ Visuel : $visu3\nProduit : $ref4 +++ Quantité : $qte4 +++ Visuel : $visu4\nProduit : $ref5 +++ Quantité : $qte5 +++ Visuel : $visu5\nProduit : $ref6 +++ Quantité : $qte6 +++ Visuel : $visu6\nProduit : $ref7 +++ Quantité : $qte7 +++ Visuel : $visu7\nProduit : $ref8 +++ Quantité : $qte8 +++ Visuel : $visu8\nProduit : $ref9 +++ Quantité : $qte9 +++ Visuel : $visu9\nProduit : $ref10 +++ Quantité : $qte10 +++ Visuel : $visu10\n\n\n");
?>
» index.php
Code :
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<html>
<head>
<title>PosterExpo</title>
<SCRIPT LANGUAGE="JavaScript">
 
function VerifForm(formulaire)
	{
	adresse = formulaire.email.value;
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1))
		{
		formulaire.submit();
		return(true);
		}
	else
		{
		alert('Veuillez inserer une adresse E-mail valide !\nSi votre E-mail est incorrecte, vous ne recevrez pas de réponse.');
		return(false);
		}
	}
</SCRIPT>
<script type="text/javascript">
 
 
//	Si la variable suivante est à true, les mots interdits sont remplacés par des étoiles.
//	Sinon, il sont effacés.
var RemplacementEtoiles = true;
 
//	Nombre de caractères maximum du textarea
var Nombre_Caracteres_Maximum = 1000000000;
 
//	Nombre de caractères minimimal à partir duquel il n'y a plus de doute :
//	Le mot qui est scanné est bien un mot interdit.
//	Valeur par défaut : 4
//	EXEMPLE :
//		Mettez le mot 'con' dans le tableau des mots interdits.
//		Tapez le mot conSpiration.
//		Mettez le curseur du textarea juste avant le S.
//		Tapez un espace. ===> le mot 'con' est remplacé.
//		Si vous mettez la variable suivante à 3, et que vous recommencez l'opération, vous ne pourrez pas taper le mot conspiration.
var Constante_Doute = 4;
 
</script>
 
<script type="text/javascript" src="limitation.js"></script>
</head>
<body bgcolor="#FFFFFF">
<center>
<form method="post" action="ok.php" onSubmit="return(VerifForm(this))">
<p>    
</p>
<table width="44%" border="0">
  <tr>
    <td width="51%"><div align="right">Soci&eacute;t&eacute; : 
          <input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="societe" size="20" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;">
    </div></td>
    <td width="49%">  <div align="right">Nom :
        <input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="nom" size="20" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></div></td>
  </tr>
  <tr>
    <td><div align="right">Adresse :
 
        <input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="adresse" size="20" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;">
    </div></td>
    <td> <div align="right">T&eacute;l&eacute;phone :
        <input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="tel" size="20" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;">
    </div></td>
  </tr>
  <tr>
    <td> <div align="right">Code postal :
        <input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="cp" size="20" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;">
    </div></td>
    <td>  <div align="right">Fax :
        <input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="fax" size="20" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"> 
    </div></td>
  </tr>
  <tr>
    <td> <div align="right">Ville :
        <input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="ville" size="20" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;">    
    </div></td>
    <td>  <div align="right">Email :
        <input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="email" size="20" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"> 
    </div></td>
  </tr>
</table>
<p><br>
  </p>
 
<table width="48%" border="0">
  <tr>
    <th width="60%" scope="col">R&eacute;f&eacute;rence</th>
    <th width="13%" scope="col">Quantit&eacute; </th>
    <th width="14%" scope="col">Avec visuel </th>
    <th width="13%" scope="col">Sans visuel</th>
  </tr>
  <tr>
    <th scope="col">          <input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="ref1" size="50" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="qte1" size="10" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu1" VALUE="avec visuel"> Oui </th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu1" VALUE="sans visuel"> Non </th>
  </tr>
  <tr>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="ref2" size="50" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="qte2" size="10" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
<th scope="col"><INPUT TYPE="radio" NAME="visu2" VALUE="avec visuel"> Oui </th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu2" VALUE="sans visuel"> Non </th>
  </tr>
  <tr>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="ref3" size="50" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="qte3" size="10" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu3" VALUE="avec visuel"> Oui </th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu3" VALUE="sans visuel"> Non </th>
  </tr>
  <tr>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="ref4" size="50" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="qte4" size="10" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu4" VALUE="avec visuel"> Oui </th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu4" VALUE="sans visuel"> Non </th>
  </tr>
  <tr>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="ref5" size="50" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="qte5" size="10" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu5" VALUE="avec visuel"> Oui </th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu5" VALUE="sans visuel"> Non </th>
  </tr>
  <tr>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="ref6" size="50" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="qte6" size="10" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
  <th scope="col"><INPUT TYPE="radio" NAME="visu6" VALUE="avec visuel"> Oui </th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu6" VALUE="sans visuel"> Non </th>
  </tr>
  <tr>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="ref7" size="50" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="qte7" size="10" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
<th scope="col"><INPUT TYPE="radio" NAME="visu7" VALUE="avec visuel"> Oui </th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu7" VALUE="sans visuel"> Non </th>
  </tr>
  <tr>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="ref8" size="50" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="qte8" size="10" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
  <th scope="col"><INPUT TYPE="radio" NAME="visu8" VALUE="avec visuel"> Oui </th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu8" VALUE="sans visuel"> Non </th>
  </tr>
  <tr>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="ref9" size="50" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="qte9" size="10" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
<th scope="col"><INPUT TYPE="radio" NAME="visu9" VALUE="avec visuel"> Oui </th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu9" VALUE="sans visuel"> Non </th>
  </tr>
  <tr>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="ref10" size="50" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
    <th scope="col"><input type="text" onKeyUp="Compter(this, this.form.CharRestant);" name="qte10" size="10" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;"></th>
<th scope="col"><INPUT TYPE="radio" NAME="visu10" VALUE="avec visuel"> Oui </th>
    <th scope="col"><INPUT TYPE="radio" NAME="visu10" VALUE="sans visuel"> Non </th>
  </tr>
</table>
<p><br>
 
  <br>
  <br>
 
  <br>
  <br>
 
  <br>
  <br>
</p>
<p>
  <input type="submit" name="Submit" value="Envoyer" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;">
  <input type="reset" name="Reset" value="Effacer" style="Border-Color: #A1B3B9; Border-Style: dashed; Border-Width: 2px;background-color: #c2d2d7;">
 
</form>
<br><br><br>
</center>
</body>
</html>
et maintenant l'erreur ^^ enfin c'est plus un probleme re récupération de données que d'une erreur .

Citation:
Merci ', htmlentities($_REQUEST['societe']),',

Votre message nous a bien été envoyé.
Voici les informations que vous avez entré :

Sujet du mail : Demande de tarifs
Votre société : ', htmlentities($_REQUEST['societe']),'
Votre adresse : ', htmlentities($_REQUEST['adresse']),'
Votre code postal : ', htmlentities($_REQUEST['cp']),'
Votre ville :', htmlentities($_REQUEST['ville']),'
Votre nom : ', htmlentities($_REQUEST['nom']),'
Votre numéro de téléphone : ', htmlentities($_REQUEST['tel']),'
Votre numéro de fax : ', htmlentities($_REQUEST['fax']),'
Votre demande de devis :
Produit : ', htmlentities($_REQUEST['ref1']),' - Quantité : ', htmlentities($_REQUEST['qte1']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu1']),'
Produit : ', htmlentities($_REQUEST['ref2']),' - Quantité : ', htmlentities($_REQUEST['qte2']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu2']),'
Produit : ', htmlentities($_REQUEST['ref3']),' - Quantité : ', htmlentities($_REQUEST['qte3']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu3']),'
Produit : ', htmlentities($_REQUEST['ref4']),' - Quantité : ', htmlentities($_REQUEST['qte4']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu4']),'
Produit : ', htmlentities($_REQUEST['ref5']),' - Quantité : ', htmlentities($_REQUEST['qte5']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu5']),'
Produit : ', htmlentities($_REQUEST['ref6']),' - Quantité : ', htmlentities($_REQUEST['qte6']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu6']),'
Produit : ', htmlentities($_REQUEST['ref7']),' - Quantité : ', htmlentities($_REQUEST['qte7']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu7']),'
Produit : ', htmlentities($_REQUEST['ref8']),' - Quantité : ', htmlentities($_REQUEST['qte8']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu8']),'
Produit : ', htmlentities($_REQUEST['ref9']),' - Quantité : ', htmlentities($_REQUEST['qte9']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu9']),'
Produit : ', htmlentities($_REQUEST['ref10']),' - Quantité : ', htmlentities($_REQUEST['qte10']),' - Avec ou sans visuel : ', htmlentities($_REQUEST['visu10']),'
Votre adresse email :', htmlentities($_REQUEST['email']),'



Vous allez recevoir une E-mail de confirmation.
Après ceci, nous vous répondrons dans les plus bref délais.

A très bientôt ...



'; }else{ echo '
Désolé, une erreur est survenue.
Vous devez remplir correctement tous les champs !

Comme vous l'aurez deviné, le probleme se pose sur les htmlentities(_$request), je voudrai que ca affiche le contenu de la chose, et nom la chose en elle meme =)

Merci de vos futures propositions...
FraK est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/03/2007, 15h23   #2
Membre Expert
 
Avatar de jbrasselet
 
Homme Julien Brasselet
Ingénieur développement logiciels
Inscription : mars 2006
Messages : 952
Détails du profil
Informations personnelles :
Nom : Homme Julien Brasselet
Âge : 32
Localisation : France, Ille et Vilaine (Bretagne)

Informations professionnelles :
Activité : Ingénieur développement logiciels
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : mars 2006
Messages : 952
Points : 1 382
Points : 1 382
Envoyer un message via MSN à jbrasselet
Il te manque des points (concaténation) entre la partie fixe et les htmlentities


Code :
echo 'test, '.htmlentities($_POST['blabla']).', test2';
__________________
L'urgent est fait, l'impossible est en cours, pour les miracles prévoir un délai.
jbrasselet est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/03/2007, 15h28   #3
Membre émérite
 
Avatar de FraK
 
Homme
Développeur Java
Inscription : juin 2005
Messages : 819
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 27
Localisation : France, Loire Atlantique (Pays de la Loire)

Informations professionnelles :
Activité : Développeur Java
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : juin 2005
Messages : 819
Points : 817
Points : 817
Envoyer un message via MSN à FraK
mais ca parait bizarre
en localhost ca marche du feu de dieu
et une fois en ligne
ca donne ca
je vais essayer
merci
FraK est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/03/2007, 15h31   #4
Membre éclairé
 
Avatar de Space Cowboy
 
Inscription : avril 2005
Messages : 495
Détails du profil
Informations forums :
Inscription : avril 2005
Messages : 495
Points : 306
Points : 306
Citation:
Envoyé par jbrasselet
Il te manque des points (concaténation) entre la partie fixe et les htmlentities
Code :
echo 'test, '.htmlentities($_POST['blabla']).', test2';
Il a raison, c'est forcement ca.
Space Cowboy est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/03/2007, 15h32   #5
Membre Expert
 
Avatar de jbrasselet
 
Homme Julien Brasselet
Ingénieur développement logiciels
Inscription : mars 2006
Messages : 952
Détails du profil
Informations personnelles :
Nom : Homme Julien Brasselet
Âge : 32
Localisation : France, Ille et Vilaine (Bretagne)

Informations professionnelles :
Activité : Ingénieur développement logiciels
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : mars 2006
Messages : 952
Points : 1 382
Points : 1 382
Envoyer un message via MSN à jbrasselet
Un truc que j'ai eu du même style.
De temps en temps j'ouvrais mes balises php en mettant juste <? et quelque fois <?php

et bien la première fonctionnait en sur le site et pas en localhost.
Ca peut être une autre piste...

NB : j'ai jamais compris pourquoi d'ailleurs
__________________
L'urgent est fait, l'impossible est en cours, pour les miracles prévoir un délai.
jbrasselet est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/03/2007, 15h35   #6
Membre éclairé
 
Avatar de Space Cowboy
 
Inscription : avril 2005
Messages : 495
Détails du profil
Informations forums :
Inscription : avril 2005
Messages : 495
Points : 306
Points : 306
Essaye de bien codé, pas de codé pour que ca marche.
On met <?php

Ca doit être un problème de version différente de PHP.
Space Cowboy est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/03/2007, 15h38   #7
Membre émérite
 
Avatar de FraK
 
Homme
Développeur Java
Inscription : juin 2005
Messages : 819
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 27
Localisation : France, Loire Atlantique (Pays de la Loire)

Informations professionnelles :
Activité : Développeur Java
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : juin 2005
Messages : 819
Points : 817
Points : 817
Envoyer un message via MSN à FraK
lol
effectivement
c'est bien le <? qui doit devenir <?php
les "." ou "," changent absolument rien en fait
^^
merci à vous
FraK est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 08h49.


 
 
 
 
Partenaires

Hébergement Web