IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

[Mail] panier php à envoyer par mail


Sujet :

Langage PHP

  1. #1
    Candidat au Club
    Inscrit en
    Avril 2008
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Avril 2008
    Messages : 18
    Points : 2
    Points
    2
    Par défaut [Mail] panier php à envoyer par mail
    bonjour tout le monde

    voici ma question :
    j'ai réalisé le panier dont le tuto est la : http://jcrozier.developpez.com/articles/web/panier/

    quelqu'un pourrait il m'aider à faire ça:

    1) une fois le pannier créé ( tableau ) l'envoyer dans un autre formulaire qui permettrais au client de completer des champs comme nom prénom etc

    2) envoyer le tout par mail en deux exemplaires avec la fonction mail()

    en fait je n'arrive pas à envoyer le contenu du pannier par mail.

    Merci d'avance pour votre aide

    yvan

  2. #2
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Points : 12 572
    Points
    12 572
    Par défaut
    tu n'as pas besoin d'envoyer le panier dans un formulaire , il est mémorisé en session !
    Tu peux créer ton formulaire pour les infos clients , une fois celui ci valide tu envoi un mail reprenant les infos du panier et les infos du formulaire client !
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  3. #3
    Candidat au Club
    Inscrit en
    Avril 2008
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Avril 2008
    Messages : 18
    Points : 2
    Points
    2
    Par défaut
    merci pour ta réponse rapide

    tu peux m'expliquer comment je doit faire

    car je comprends pas ( j'ai pas le niveau ).

    ou faire le scripte ça serais encore mieu.

    d'avance merci

    yvan

  4. #4
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Points : 12 572
    Points
    12 572
    Par défaut
    sur la page de ton panier tu crée un lien sur une page qui contient ton formulaire client du genre :

    < a href="formulaire.php">Valider mes achats</a>

    Sur cette page tu affiche le formulaire et tu fais le traitement associé , tu mets en forme tes variables et tu envoi le tout par mail .

    quelques liens :

    PHP et les formulaires
    Envoi de mails avec la librairie PHPMailer
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  5. #5
    Candidat au Club
    Inscrit en
    Avril 2008
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Avril 2008
    Messages : 18
    Points : 2
    Points
    2
    Par défaut
    j'en suis la en fait,

    j'ai réussi à integrer le tableau du formulaire dans la page ou le client rentre ses coordonnées.

    le problême c'est que je ne réussi pas à récuperer les données créées avec array pour les envoyer par mail

    ou mieu tout envoyer avec la mise en page


    merci

  6. #6
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Points : 12 572
    Points
    12 572
    Par défaut
    tu peux reprendre le principe de l'affichage du panier sauf qu'au lieu d'afficher avec un echo , tu le mets dans une variable $affichage par exemple avec le reste des informations !

    Le mieux pour pas se tromper : sur la page du formulaire , tu affiche les infos client , et les infos du panier avec la mise en forme html , une fois que ça te plait , tu crée une var $affichage avant d'afficher le récapitulatif et tu remplace tout tes echo par

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    $affichage .= "chaque ligne que tu affiche"
    et c'est cette variable que tu envoi par formulaire !
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  7. #7
    Candidat au Club
    Inscrit en
    Avril 2008
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Avril 2008
    Messages : 18
    Points : 2
    Points
    2
    Par défaut
    sur le script tu panier tu peux me montrer comment créér la var $affichage s'il te plais car je suis largué là

    merci

  8. #8
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Points : 12 572
    Points
    12 572
    Par défaut
    tu ne veux pas commencer par des tutoriels sur le PHP ou la programmation avant tout ?
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  9. #9
    Candidat au Club
    Inscrit en
    Avril 2008
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Avril 2008
    Messages : 18
    Points : 2
    Points
    2
    Par défaut
    c'est ce que je fais tout en t'écrivant.

    ça fais trois jours que je passe au moins 14 h/jour la dessus.

    mais tout seul c'est pas facile.

    en fait je n'arrive même pas à envoyer mon formulaire de contact par mail avec la mise en forme j'envois juste les réponses en fait.

    merci pour ton aide en tout cas

  10. #10
    Candidat au Club
    Inscrit en
    Avril 2008
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Avril 2008
    Messages : 18
    Points : 2
    Points
    2
    Par défaut
    voilà
    j'arrive plus ou moins a ce que je veux dans le sens ou je reçois la présentation du formulaire ainsi que le tableau du caddie mais le tableau est en code " je pense que c'est du fait que c'est du php et non du html et que celui ci n'est pas interpreté par outlook.

    comment je doit faire

    merci d'avance RideKick

  11. #11
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Points : 12 572
    Points
    12 572
    Par défaut
    montre nous ton code c'est plus pratique
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  12. #12
    Candidat au Club
    Inscrit en
    Avril 2008
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Avril 2008
    Messages : 18
    Points : 2
    Points
    2
    Par défaut
    j'avance j'avance,

    en fait c'est tout ce qui est php qui n'est pas envoyé

    donc tout ce qui est echo n'est pas visible tout ce qui est html l'est.

    tu as une explication ?

    pour envoyer le mail j'utilise la commande $file =fopen("commande.php","a+")

    ce qui m'envoi la page apre traitement.

    peut être n'est-ce as la bonne solution

    si je met la page sous forme de variable c'est pareil

  13. #13
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Points : 12 572
    Points
    12 572
    Par défaut
    Citation Envoyé par RideKick Voir le message
    montre nous ton code c'est plus pratique
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  14. #14
    Candidat au Club
    Inscrit en
    Avril 2008
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Avril 2008
    Messages : 18
    Points : 2
    Points
    2
    Par défaut
    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
    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
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    <?php
    session_start() ;
    include_once("fonctions-panier.php");
    ?>
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta xmlns="http://www.w3.org/1999/xhtml" http-equiv="content-language" content="fr"></meta><meta xmlns="http://www.w3.org/1999/xhtml" http-equiv="cache-control" content="no-cache"></meta><meta xmlns="http://www.w3.org/1999/xhtml" http-equiv="pragma" content="no-cache"></meta><meta xmlns="http://www.w3.org/1999/xhtml" name="title" content="Formulaire de réponse"></meta><meta xmlns="http://www.w3.org/1999/xhtml" name="description" content="TINCAS basierte CGI-Schnittstelle"></meta><meta xmlns="http://www.w3.org/1999/xhtml" name="keywords" lang="de" content="CGI, Gästebuch, Counter, Forum, TINC, TINCAS"></meta><meta xmlns="http://www.w3.org/1999/xhtml" name="keywords" lang="en" content="CGI, Guestbook, Counter, Forum, TINC, TINCAS"></meta><meta xmlns="http://www.w3.org/1999/xhtml" name="keywords" lang="fr" content="CGI, Formulaire de réponse, Compteur, Forum, TINC, TINCAS"></meta><meta xmlns="http://www.w3.org/1999/xhtml" name="author" content="1&amp;1 Internet AG"></meta><meta xmlns="http://www.w3.org/1999/xhtml" name="copyright" content="1&amp;1 Internet AG"></meta><meta xmlns="http://www.w3.org/1999/xhtml" name="publisher" content="1&amp;1 Internet AG"></meta><meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex"></meta><meta xmlns="http://www.w3.org/1999/xhtml" name="DC.Format" content="text/html, charset=utf-8"></meta><meta xmlns="http://www.w3.org/1999/xhtml" name="DC.Language" content="fr"></meta><title>Copy of contact.php</title><style xmlns:js="http://www.schlund.de/tinc/runtimexsl/js" type="text/css">			
    			body {
    	margin:15px 10px 20px;
    	background-color: #CCFFFF;
    			}
     
    			h2 {
    				text-decoration:underline; 
    				/*font-size:16px;*/
    				font-size:133%;
    			}
     
    			h3 {
    				/*font-size:14px*/
    				font-size:116%;
    			}
     
    			input {
    				/*font-size:11px;*/
    				font-size:95%;
    			}
     
    			/* not found */
    			/*.gross {
    				font-size:16px
    			}*/
    			/* found in messageboard.xsl. formatting of links in entryhandle and entrymenu templates.
    			formatting of submitted fields in guest/moderator html mails (template entry).
    			formatting of user name and submission date of an entry in layout mode 2.
    			formatting of response type message in templates preview and updateform*/
    			.klein {
    				font-size:90%;
    				/*font-size:10px*/
    			}
    			/* found in messageboard.xsl. formatting of | chars in template entryhandle.
    			formatting of entry subject (template entry) in layout mode 2*/
    			.mittel {
    				font-size:116%;
    				/*font-size:14px;*/
    			}
    			/* found in messageboard.xsl. formatting entryhandle and entrymenu template contents */
    			.rechts {
    				text-align:right
    			}
    			/* found in messageboard.xsl. formatting entry number */
    			.riesig {
    				/*font-size:20px;*/
    				font-size:166%;
    			}
     
    			/* not found */
    			/*.noline {
    				text-decoration: none
    			}*/
     
    			.admin {
    				margin:0 4px;
    			}
     
    			.warn {
    				color:#000000;
    				font-weight:bold;
    			}
    		</style><style xmlns:js="http://www.schlund.de/tinc/runtimexsl/js" type="text/css">
    			body,table,tr,td,li,a {
    				color:#000000;
    				font-family:Arial, Helvetica, sans-serif;;
    				font-size:12px;
    			}
     
     
     
    			body, table, td, .bgnorm {
    				background-color:#FFFFFF
    			}
     
    			/* found in messageboard.xsl and feedback.xsl */
    			.invert {
    				background-color:#000000;
    				color:#FFFFFF
    			}
     
    			input,textarea {
    				border:0px none #FFFFFF;
    				color:#383838;
    				scrollbar-base-color:#FFFFFF;
    				scrollbar-shadow-color:#383838;
    				scrollbar-darkshadow-color:#FFFFFF;
    				scrollbar-track-color:#FFFFFF;
    				scrollbar-3dlight-color:#FFFFFF;
    				scrollbar-face-color:#FFFFFF;
    				scrollbar-highlight-color:#FFFFFF;
    				scrollbar-arrow-color:#383838
    			}
     
    			/* found in messageboard.xsl and feedback.xsl */
    			.high,input,textarea {
    				background-color:#D8D8D8
    			} 
     
    			/* found in messageboard.xsl and feedback.xsl. styling of input fields in case of 
    			wrong/missing input.*/
    			.warn {
    				background-color:#F71F1F
    			}
     
    			/* found in messageboard.xsl. formatting of admin link texts in template entryhandle. */
    			.admin {
    				color:#F71F1F;
    			}
     
    			/* found in messageboard.xsl and feedback.xsl. border around table components.*/
    			.dborder {
    				border:1px dotted #383838;
    				padding:2px 2px 2px 2px;
    			}
     
    			/* found in messageboard.xsl, feedback.xsl and counter.xsl. submit buttons. */
    			.button {
    				border:1px solid #383838;
    			}
     
    			/* found in messageboard.xsl. formatting of header for guest html reply mail (template entry).
    			formatting of entry body (both modes) (template entry).
    			found in feedback.xsl. formatting of header for reply mail.*/
    			.message {
    				border-bottom:1px solid #ECECEC;
    				border-left:1px solid #ECECEC;
    				/*line-height:18px;*/ 
    				line-height:150%;
    				padding:3px 3px 3px 3px
    			}
    		.Style1 {font-size: 14px}
            .Style2 {background-color: #000000; color: #FFFFFF; font-size: 14px; }
            .Style3 {font-size: 18px; }
            .Style4 {font-size: 36px; }
            .Style5 {color: #FF0000}
            .style6 {
    	color: #FF0000;
    	font-style: italic;
    	font-weight: bold;
    	font-size: 18px;
    	font-family: Georgia, "Times New Roman", Times, serif;
    }
            .style7 {
    	font-size: 24px;
    	font-weight: bold;
    	font-family: Geneva, Arial, Helvetica, sans-serif;
    }
            .style8 {font-size: 16px}
            #apDiv1 {
    	position:absolute;
    	left:331px;
    	top:281px;
    	width:258px;
    	height:34px;
    	z-index:1;
    }
            #apDiv2 {
    	position:absolute;
    	left:761px;
    	top:417px;
    	width:162px;
    	height:84px;
    	z-index:1;
    }
            </style><script xmlns:js="http://www.schlund.de/tinc/runtimexsl/js">
    		try {
      			if (window.parent.parent.CSSInject) {
    				var listLength = window.parent.parent.CSSInject.length;
    				for(var i=0; i<listLength; i++){
    					var cssInjectUrl = window.parent.parent.CSSInject[i];
    					document.writeln("<style type='text/css'>@import url("+cssInjectUrl+");</style>");
    				};
      			}
    		} catch (ex) {};
    	</script></head>
    <body>
    <div id="tinc_content"><center><h2 class="Style4" xmlns="http://www.w3.org/1999/xhtml">Contact</h2><table width="95%" border="5" bgcolor="#66FFFF" class="dborder" xmlns="http://www.w3.org/1999/xhtml">
    	      <tr><td colspan="2" bgcolor="#FFFF66" class="invert"><p><b><span class="Style3">Veuillez remplir le formulaire ci-dessous</span></b></p>
    	        <p><b><span class="Style3 Style5"> tous les champs sont obligatoires</span><span class="Style5">*:</span></b></p></td></tr><form method="GET" accept-charset="utf-8" action="Commande.php"><tr>
    	          <td height="444" colspan="2"><table width="100%" border="10" cellpadding="1" cellspacing="0" bordercolor="#FF99FF">
                    <colgroup>
                      <col width="14%">
                    <td width="36%">              
                      <col width="35%">
    	            <col width="2%">
    	            <col width="14%">
    	            <col width="35%">
    	            <tr height="2">
    	              <td colspan="2" height="2"></td>
                    </tr>
    	            <tr>
                      <td><b>Nom *:</b></td>
    	              <td width="62%"><input type="text" name="nom" size="30" style="width: 100%" value=""></td>
                    </tr>
    	            <tr>
                      <td><b>Prenom *:</b></td>
    	              <td width="62%"><input type="text" name="prenom" size="30" style="width: 100%" value="" id="prenom">                  </td>
                    </tr>
    	            <tr>
                      <td><b>Ville/Code postal *:</b></td>
    	              <td><input type="text" name="ville" size="30" style="width: 100%">                  </td>
                    </tr>
    	            <tr>
                      <td><b>Pays *:</b></td>
    	              <td><input type="text" name="Pays" size="30" style="width: 100%" value="" id="Pays">                  </td>
    	              <td width="2%">&nbsp;</td>
                    </tr>
    	            <tr>
    	              <td><b>Email*:</b></td>
    	              <td><input type="text" name="email" size="30" style="width: 100%" value=""></td>
    	              <td width="2%">*</td>
                    </tr>
    	            <tr height="1">
    	              <td colspan="5" height="1">                              </tr>
    	            <tr>
    	              <td bgcolor="#FF66CC">*
    	                <div align="center"><strong><span class="style6">Mode de paiement </span></strong></div></td>
    	              <td colspan="4"><select name="paiement" id="paiement">
                          <option value="Paypal">Paypal 
                        <option value="virement">virement 
                        <option value="cheque">cheque 
                        <option value="mandat">mandat 
                        <option value="autre">autre 
                        </select>
    	                &nbsp;</td>
     
                    </tr>
    	            <tr bgcolor="#FFFF66">
                      <td valign="top" bordercolor="5"><p align="right" class="style8"><b>commentaires:</b></p>
                          <p align="left" class="style8"><strong>précisez ici si vous souhaitez un autre mode de paiement</strong></p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p></td>
    	              <td colspan="4"><table width="494" height="70" style="width: 100%">
                <tr>
                            <td colspan="4"><div align="center"><tt>Votre panier</tt></div></td >
                          </tr>
                          <tr>
                            <td><tt>Libellé</tt></td>
                            <td><tt>Quantité</tt></td>
                            <td><tt>Prix Unitaire</tt></td>
                            <td><tt>Action</tt></td>
                          </tr>
                          <tr>
                            <td height="34"><tt>frais de port</tt></td>
                            <td><tt>
                              <select name="port" id="port">
                                <option value="2.5" selected="selected">France </option>
                                <option value="5.8">etranger </option>
                              </select>
                              &nbsp;</tt></td>
                            <td><tt><a href="panier.php?action=ajout&amp;l=frais de port&amp;q=1&amp;p=2.5" onClick="window.open(this.href, '', 'toolbar=no, location=no, directories=no, status=yes, scrollbars=yes, resizable=yes, copyhistory=no, width=600, height=350'); return false;">Ajouter frais de port</a>&nbsp;</tt></td>
                            <td><tt></tt></td>
                          </tr>
                          <?php
    if (creationPanier())
    {
    $nbArticles=count($_SESSION['panier']['libelleProduit']);
      if ($nbArticles <= 0)
       echo "<tr><td>Votre panier est vide </ td></tr>";
      else
      {
       for ($i=0 ;$i < $nbArticles ; $i++)
       {
        echo "<tr>";
        echo "<td>".htmlspecialchars($_SESSION['panier']['libelleProduit'][$i])."</ td>";
        echo "<td><input type=\"text\" size=\"4\" name=\"QteArticle[]\" value=\"".htmlspecialchars($_SESSION['panier']['qteProduit'][$i])."\"/></td>";
     
        echo "<td>".htmlspecialchars($_SESSION['panier']['prixProduit'][$i])."</td>";
        echo "<td><a href=\"".htmlspecialchars("panier.php?action=suppression&l=".rawurlencode($_SESSION['panier']['libelleProduit'][$i]))."\">supprimer</a></td>";
        echo "</tr>";
       }
     
      echo "<tr><td colspan=\"2\"> </td>";
      echo "<td colspan=\"2\">";
      echo "Total : ".MontantGlobal();
      echo "</td></tr>";
     
      echo "<tr><td colspan=\"4\">";
      echo "<input type=\"submit\" value=\"Rafraichir\"/>";
      echo "<input type=\"hidden\" name=\"action\" value=\"refresh\"/>";
      echo "</td></tr>";
      }
    }
    ?>
                      </table></td>
                    </tr>
    	            <tr>
    	              <td>*</td>
    	              <td colspan="5" bgcolor="#FFFF66"><input class="button" type="submit" value="Valider"></td>
                    </tr>
                  </table></td>
    	        </tr><tr>
     
    	    <label for="verif"></label>
    <br /><br /></td>
    	  <td></td></tr><input type="hidden" name="key" value="hVO1E2Bh"></input><tr><td class="invert" colspan="2" align="center"><a href="http://www.bijouxenbois.fr" class="Style2 style7">Retour à l'accueil</a></td>
    	  </tr></form></table>
    </center>
    	</div>
     
     
    </body></html>

  15. #15
    Candidat au Club
    Inscrit en
    Avril 2008
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Avril 2008
    Messages : 18
    Points : 2
    Points
    2
    Par défaut
    voila c'est cette page complétée que je voudrais envoyer par mail.

  16. #16
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Points : 12 572
    Points
    12 572
    Par défaut
    Dans le style (j'ai pas tout mis ton code est archi long )

    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
    $affichage;
     
    if (creationPanier())
    {
    $nbArticles=count($_SESSION['panier']['libelleProduit']);
      if ($nbArticles <= 0)
       $affichage.="<tr><td>Votre panier est vide </ td></tr>";
      else
      {
       for ($i=0 ;$i < $nbArticles ; $i++)
       {
        $affichage.="<tr>";
        $affichage.="<td>".htmlspecialchars($_SESSION['panier']['libelleProduit'][$i])."</ td>";
        $affichage.="<td><input type=\"text\" size=\"4\" name=\"QteArticle[]\" value=\"".htmlspecialchars($_SESSION['panier']['qteProduit'][$i])."\"/></td>";
     
        $affichage.="<td>".htmlspecialchars($_SESSION['panier']['prixProduit'][$i])."</td>";
        $affichage.="<td><a href=\"".htmlspecialchars("panier.php?action=suppression&l=".rawurlencode($_SESSION['panier']['libelleProduit'][$i]))."\">supprimer</a></td>";
        echo "</tr>";
       }
     
      $affichage.="<tr><td colspan=\"2\"> </td>";
      $affichage.="<td colspan=\"2\">";
      $affichage.="Total : ".MontantGlobal();
      $affichage.="</td></tr>";
     
      $affichage.="<tr><td colspan=\"4\">";
      $affichage.="<input type=\"submit\" value=\"Rafraichir\"/>";
      $affichage.="<input type=\"hidden\" name=\"action\" value=\"refresh\"/>";
      $affichage.="</td></tr>";
      }
    }
    ?>
                     $affichage.=" </table></td>";
    et tu envoi $affichage ^par mail , bien évidement tu vas rajouter les donnes=es formulaires client et supprimer les boutons du panie
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  17. #17
    Candidat au Club
    Inscrit en
    Avril 2008
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Avril 2008
    Messages : 18
    Points : 2
    Points
    2
    Par défaut
    merci pour tous tes efforts pour m'aider mais ça ne fonctionne pas

    le truc c'est que quand ma page s"affiche et que je fais selectionner source et que je la met dans outlook ça m'affiche bien tout.

    je comprends pas

    ça viens peut être de mon fichier qui traite l'envoi

    pour faire simple j'envoi dirrectement la page que j'ai mis en variable avec ce code ( $content=file_get_contents("Copy of contact.php"); )mais c'est pareil les truc entre <? et ?> ne s'affichent pas dans le mail

    encore merci

  18. #18
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Points : 12 572
    Points
    12 572
    Par défaut
    normal , tu prends le contenu du fichier et tu l'envoi par mail , le PHP n est pas interprétée .

    tu veux pas passer par la variable comme je t'ai montré donc ?!
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  19. #19
    Candidat au Club
    Inscrit en
    Avril 2008
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Avril 2008
    Messages : 18
    Points : 2
    Points
    2
    Par défaut
    si j'ai essayer comme tu m'as marqué mais ça ne fonctionne pas non plus.

    en fait quand j'ajoute un article avec echo ça marche si je met le code commt tu me l'indique j'ai le haut du tableau(html) mais pas les array en fait

    je persevere.

    mais je pense que le problême viens du php qui envois le mail,

    je vais le refaire pour voir

    encore merci

  20. #20
    Candidat au Club
    Inscrit en
    Avril 2008
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Avril 2008
    Messages : 18
    Points : 2
    Points
    2
    Par défaut
    j'ai bien avancé,
    je réussi à envoyer mon formulaire.
    pux tu me dire quelles sont les parties à récuperer dans le script si je veux afficher juste la reference , le prix , la quantité.
    je réussi a récuperer le totol en récuperant cette variable
    '.MontantGlobal().'

    dans le meme style j'aimerais récuperer la ref d'un produit et son prix

    merci d'avance RideKick

Discussions similaires

  1. [Web Service] Envoyer formulaire de contact par mail via php
    Par ginger4957 dans le forum Bibliothèques et frameworks
    Réponses: 6
    Dernier message: 09/06/2009, 15h53
  2. Réponses: 8
    Dernier message: 25/07/2006, 22h49
  3. Réponses: 1
    Dernier message: 25/07/2006, 22h11
  4. Envoyer par mail un document Rave Report
    Par Wilco dans le forum Bases de données
    Réponses: 3
    Dernier message: 10/10/2004, 10h55

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo