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

PHP & Base de données Discussion :

Formulaire HTML et PHP


Sujet :

PHP & Base de données

  1. #1
    Futur Membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Février 2017
    Messages
    4
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Février 2017
    Messages : 4
    Par défaut Formulaire HTML et PHP
    Bonjour,
    Je suis novice en php.
    J'ai dl un formulaire et modifier des champs que je souhaite ajouter en plus.
    Cependant, je ne sais pas du tout comment récupérer ces infos sur le mail que je dois recevoir.

    Voici mon html:
    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
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    <!DOCTYPE html>
    <html lang="fr" class="wide wow-animation smoothscroll scrollTo">
      <head>
        <!-- Site Title-->
        <title>ERF - Contactez-nous</title>
        <meta name="format-detection" content="telephone=no">
        <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta charset="utf-8">
        <link rel="icon" href="images/favicon.ico" type="image/x-icon">
        <!-- Stylesheets-->
        <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Raleway:400,500,700">
        <link rel="stylesheet" href="css/style.css">
    		<!--[if lt IE 10]>
        <div style="background: #212121; padding: 10px 0; box-shadow: 3px 3px 5px 0 rgba(0,0,0,.3); clear: both; text-align:center; position: relative; z-index:1;"><a href="http://windows.microsoft.com/en-US/internet-explorer/"><img src="images/ie8-panel/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today."></a></div>
        <script src="js/html5shiv.min.js"></script>
    		<![endif]-->
      </head>
      <body>
        <!-- Page-->
        <div class="page text-center">
          <!-- Page Header-->
          <header class="page-head">
            <!-- RD Navbar-->
            <div style="background: #142332 url(images/backgrounds/background-04-1920x942.jpg) 0/cover no-repeat;" class="rd-navbar-wrap">
              <nav data-layout="rd-navbar-fixed" data-sm-layout="rd-navbar-fixed" data-md-device-layout="rd-navbar-fixed" data-lg-layout="rd-navbar-static" data-lg-device-layout="rd-navbar-static" data-sm-stick-up-offset="50px" data-lg-stick-up-offset="150px" class="rd-navbar rd-navbar-static-subpage">
                <div class="rd-navbar-inner">
                  <div class="rd-navbar-inner-wrap">
                    <!-- RD Navbar Panel-->
                    <div class="rd-navbar-panel">
                      <!-- RD Navbar Toggle-->
                      <button data-rd-navbar-toggle=".rd-navbar-nav-wrap" class="rd-navbar-toggle"><span></span></button>
                      <button data-rd-navbar-toggle=".rd-navbar-search-fixed-wrap" class="rd-navbar-search-toggle"><span></span></button>
                      <button data-rd-navbar-toggle=".rd-navbar-panel-right" class="rd-navbar-panel-right-toggle"><span></span></button>
                      <!-- RD Navbar Brand-->
                      <div class="rd-navbar-brand"><a href="index.html" class="brand-name"><img width='300' height='100' src='images/logo-light.png' alt=''/></a></div>
                      <div class="rd-navbar-search-fixed-wrap">
                        <!-- RD Search-->
                        <form action="search-results.html" method="GET" data-search-live="rd-search-fixed-results-live" class="rd-search rd-search-results-navbar">
                          <div class="form-group">
                            <input type="text" name="s" autocomplete="off" class="form-control"/>
                          </div>
                          <div id="rd-search-fixed-results-live" class="rd-search-results-live"></div>
                        </form>
                      </div>
                    </div>
                    <div class="rd-navbar-nav-wrap">
                      <!-- RD Navbar Nav-->
                      <ul class="rd-navbar-nav">
     
                          <!-- RD Navbar Dropdown-->
                        </li>
                        <li><a href="contacts.html">Découvrez si vous êtes éligible - CONTACTEZ NOS CONSEILLERS 24h/24 & 7j/7</a></li>
                      </ul>
                    </div>
                    <div class="rd-navbar-panel-right-wrap rd-navbar-panel-right-wrap-subpage">
                      <div class="rd-navbar-panel-right text-lg-right">
                        <ul class="list list-inline list-inline-0 list-warning-darken extra-small">
                          <font color="white">Suivez-nous :</font><li><a href="#" class="text-warning"><span class="icon fa fa-facebook"></span></a></li></font>
     
                        </ul>
     
                      </div>
                    </div>
                  </div>
                </div>
              </nav>
            </div>
            <div class="offset-top-55 tablet-offset-md-top-55 offset-md-top-0">
              <!-- Breadcrumbs Custom-->
              <section class="breadcrumb-custom section-top-13 section-bottom-18 bg-gray-lighter">
                <ul class="list list-inline list-inline-dashed text-medium extra-small text-spacing-150 inset-left-6 inset-right-6 inset-lg-left-0 inset-lg-right-0">
                  <li><a href="index.html" class="text-darker">Accueil</a></li>
                  <li class="text-primary">Contactez-nous
                  </li>
                </ul>
              </section>
            </div>
          </header>
          <!-- Page Content-->
          <main class="page-content">
            <!-- Contact us-->
            <section class="section-80 section-sm-50">
              <div class="shell text-md-left">
                            <div class="range range-xs-center offset-top-34">
     
                  <div class="cell-sm-8 cell-md-6 offset-top-50 offset-md-top-0">
                   <font color="#e5bc63" size="+3" face="Raleway, Helvetica, Arial, sans-serif">Commencez à économiser de l'argent avec des panneaux solaires.</font>
                    <!-- RD Mailform-->
                    <form data-form-output="form-output-global" data-form-type="contact" method="post" action="bat/rd-mailform.php" class="rd-mailform offset-top-25 text-left">	
    				  <div class="form-group">
                        <!--Select 2-->
                        <select data-placeholder="Select an option" data-minimum-results-for-search="Infinity" class="form-control select-filter">
                          <optgroup label="">
                            <option>- Votre situation -</option>
                            <option>Propriétaire</option>
                            <option>Locataire</option>
                            <option>Locataire mandaté</option>
    						<option>Futur propriétaire</option>
    						<option>Syndic de copropriété</option>
                          </optgroup>
                        </select>
                      </div>
    				    <div class="form-group">
                        <!--Select 2-->
                        <select data-placeholder="Select an option" data-minimum-results-for-search="Infinity" class="form-control select-filter">
                          <optgroup label="">
                            <option>- Votre projet -</option>
                            <option>Maison</option>
                            <option>Appartement</option>
                            <option>Appartement avec cour, terrasse ou balcon</option>
    						<option>Immeuble</option>
    						<option>Bureaux</option>
    						<option>Local commercial</option>
                          </optgroup>
                        </select>
                      </div>
    				  <div class="form-group">
                        <!--Select 2-->
                        <select data-placeholder="Select an option" data-minimum-results-for-search="Infinity" class="form-control select-filter">
                          <optgroup label="">
                            <option>- Etat du bien -</option>
                            <option>Achevé</option>
                            <option>En cours de construction</option>
                          </optgroup>
                        </select>
                      </div>
    				  				  <div class="form-group">
                        <!--Select 2-->
                        <select data-placeholder="Select an option" data-minimum-results-for-search="Infinity" class="form-control select-filter">
                          <optgroup label="">
                            <option>- Type du chauffage -</option>
                            <option>Electricité</option>
                            <option>Gaz</option>
    						 <option>Fioul</option>
                          </optgroup>
                        </select>
                      </div>
    				  				  				  <div class="form-group">
                        <!--Select 2-->
                        <select data-placeholder="Select an option" data-minimum-results-for-search="Infinity" class="form-control select-filter">
                          <optgroup label="">
                            <option>- Combles -</option>
                            <option>Perdus</option>
                            <option>Aménagés</option>
                          </optgroup>
                        </select>
                      </div>
    				  				  <div class="form-group">
                        <!--Select 2-->
                        <select data-placeholder="Select an option" data-minimum-results-for-search="Infinity" class="form-control select-filter">
                          <optgroup label="">
                            <option>- Revenus nets du ménage -</option>
                            <option>Inférieur à 2000 €</option>
                            <option>Supérieur à 2000 €</option>
                          </optgroup>
                        </select>
                      </div>
    				  				  				  <div class="form-group">
                        <!--Select 2-->
                        <select data-placeholder="Select an option" data-minimum-results-for-search="Infinity" class="form-control select-filter">
                          <optgroup label="">
                            <option>- Votre profession -</option>
                            <option>Salarié</option>
                            <option>Cadre</option>
    						<option>Ouvrier</option>
    						<option>Sans emploi</option>
    						<option>Dirigeant d'entreprise</option>
    						<option>Profession libérale</option>
                          </optgroup>
                        </select>
                      </div>
    				                    <div class="form-group">
                        <label for="contact-name" class="form-label">Votre Nom - Prénom</label>
                        <input id="contact-name" type="text" name="name" data-constraints="@Required" class="form-control">
                      </div>
                      <div class="form-group">
                        <label for="contact-street-address" class="form-label">Addresse</label>
                        <input id="contact-street-address" type="text" name="street-address" data-constraints="@Required" class="form-control">
                      </div>
                      <div class="form-group">
                        <label for="contact-zip-code" class="form-label">Code postal</label>
                        <input id="contact-zip-code" type="text" name="zip-code" data-constraints="@Required" class="form-control">
                      </div>
    				  <div class="form-group">
                        <label for="contact-ville" class="form-label">Ville</label>
                        <input id="contact-ville" type="text" name="ville" data-constraints="@Required" class="form-control">
                      </div>
    				                    <div class="form-group">
                        <label for="contact-email" class="form-label">Email</label>
                        <input id="contact-email" type="email" name="email" data-constraints="@Required @Email" class="form-control">
                      </div>
                      <div class="form-group">
                        <label for="contact-phone" class="form-label">Tél</label>
                        <input id="contact-phone" type="text" name="phone" data-constraints="@IsNumeric" class="form-control">
                      </div>
                      <div class="text-center text-md-right">
                        <button type="submit" class="btn btn-icon btn-icon-right btn-primary btn-border-vertical text-spacing-25 offset-top-42"><span class="icon icon-rotate mdi mdi-keyboard-backspace"></span>Envoyer</button>
                      </div>
                    </form>
                  </div>
                </div>
              </div>
            </section>
          </main>
          <!-- Page Footer-->
          <footer class="page-footer bg-botticelli section-80 section-sm-100">
            <div class="shell">
              <div class="range range-xs-center">
                <div class="cell-xs-5 cell-sm-3 cell-md-2 cell-lg-2 cell-lg-push-1 text-xs-left"><a href="index.html"><img width='189' height='60' src='images/logo-dark.png' alt=''/></a>
                  <div class="reveal-block text-lg-left inset-left-30">
                    <div class="extra-small offset-top-4 text-bold text-darker">&copy; <span id="copyright-year"></span></div>
                  </div>
                </div>
                <div class="cell-xs-9 cell-sm-8 cell-md-8 cell-lg-6 cell-lg-push-3 offset-top-20 offset-sm-top-0 text-xs-left">
                  <p class="extra-small text-darker"><strong>L'autonomie énergétique par l'innovation<br>Eco Rénovation France</strong> est un créateur et fabricant de solutions solaires dédiées à l'habitat. Ses systèmes innovants <strong>réduisent la facture énergétique</strong> et améliorent la qualité de vie intérieur. Inventrice de la téchnologie aérovoltaïque, la société porte un intêret tout particulier au choix de ses composants et à son implantation.</p>
                  <h6 class="offset-top-20 offset-md-top-22">Découvrez si vous êtes éligible en 30 secondes !</h6>
                  <div class="range offset-top-10 offset-md-top-20">
    <center><div class="cell-sm-6"><a href="contacts.html" style="max-width:310px; min-height: 48px; line-height: 28px;" class="btn reveal-sm-block btn-icon btn-icon-right btn-primary btn-border-vertical text-uppercase text-spacing-150"><span style="line-height: 26px;" class="icon icon-sm icon-rotate mdi mdi-keyboard-backspace"></span>FAITES UNE SIMULATION</a></div>
                    </center>
                </div>
     
              </div>
            </div>
          </footer>
        <!-- Global Mailform Output-->
        <div id="form-output-global" class="snackbars"></div>
        <!-- PhotoSwipe Gallery-->
        <div tabindex="-1" role="dialog" aria-hidden="true" class="pswp">
          <div class="pswp__bg"></div>
          <div class="pswp__scroll-wrap">
            <div class="pswp__container">
              <div class="pswp__item"></div>
              <div class="pswp__item"></div>
              <div class="pswp__item"></div>
            </div>
            <div class="pswp__ui pswp__ui--hidden">
              <div class="pswp__top-bar">
                <div class="pswp__counter"></div>
                <button title="Close (Esc)" class="pswp__button pswp__button--close"></button>
                <button title="Share" class="pswp__button pswp__button--share"></button>
                <button title="Toggle fullscreen" class="pswp__button pswp__button--fs"></button>
                <button title="Zoom in/out" class="pswp__button pswp__button--zoom"></button>
                <div class="pswp__preloader">
                  <div class="pswp__preloader__icn">
                    <div class="pswp__preloader__cut">
                      <div class="pswp__preloader__donut"></div>
                    </div>
                  </div>
                </div>
              </div>
              <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
              </div>
              <button title="Previous (arrow left)" class="pswp__button pswp__button--arrow--left"></button>
              <button title="Next (arrow right)" class="pswp__button pswp__button--arrow--right"></button>
              <div class="pswp__caption">
                <div class="pswp__caption__cent"></div>
              </div>
            </div>
          </div>
        </div>
        <!-- Java script-->
        <script src="js/core.min.js"></script>
        <script src="js/script.js"></script>
      </body>
    </html>
     
     
    -------------------------------------
    Voici le fichier PHP:
    <?php
     
    $recipients = 'contact@ecorenovationfrance.fr';
     
    try {
        require './phpmailer/PHPMailerAutoload.php';
     
        preg_match_all("/([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)/", $recipients, $addresses, PREG_OFFSET_CAPTURE);
     
        if (!count($addresses[0])) {
            die('MF001');
        }
     
        if (preg_match('/^(127\.|192\.168\.)/', $_SERVER['REMOTE_ADDR'])) {
            die('MF002');
        }
     
        $template = file_get_contents('rd-mailform.tpl');
     
        if (isset($_POST['form-type'])) {
            switch ($_POST['form-type']){
                case 'contact':
                    $subject = 'Un message depuis le formulaire du site internet';
                    break;
                case 'subscribe':
                    $subject = 'Subscribe request';
                    break;
                case 'order':
                    $subject = 'Order request';
                    break;
                default:
                    $subject = 'Un message depuis le formulaire du site internet';
                    break;
            }
        }else{
            die('MF004');
        }
     
        if (isset($_POST['email'])) {
            $template = str_replace(
                array("<!-- #{FromState} -->", "<!-- #{FromEmail} -->"),
                array("Email:", $_POST['email']),
                $template);
        }else{
            die('MF003');
        }
     
        if (isset($_POST['message'])) {
            $template = str_replace(
                array("<!-- #{MessageState} -->", "<!-- #{MessageDescription} -->"),
                array("Message:", $_POST['message']),
                $template);
        }
     
        preg_match("/(<!-- #{BeginInfo} -->)(.|\n)+(<!-- #{EndInfo} -->)/", $template, $tmp, PREG_OFFSET_CAPTURE);
        foreach ($_POST as $key => $value) {
            if ($key != "email" && $key != "message" && $key != "form-type" && !empty($value)){
                $info = str_replace(
                    array("<!-- #{BeginInfo} -->", "<!-- #{InfoState} -->", "<!-- #{InfoDescription} -->"),
                    array("", ucfirst($key) . ':', $value),
                    $tmp[0][0]);
     
                $template = str_replace("<!-- #{EndInfo} -->", $info, $template);
            }
        }
     
        $template = str_replace(
            array("<!-- #{Subject} -->", "<!-- #{SiteName} -->"),
            array($subject, $_SERVER['SERVER_NAME']),
            $template);
     
        $mail = new PHPMailer();
        $mail->From = $_POST['email'];
     
        if (isset($_POST['name'])){
            $mail->FromName = $_POST['name'];
        }else{
            $mail->FromName = "Site Visitor";
        }
     
        foreach ($addresses[0] as $key => $value) {
            $mail->addAddress($value[0]);
        }
     
        $mail->CharSet = 'utf-8';
        $mail->Subject = $subject;
        $mail->MsgHTML($template);
        $mail->send();
     
        die('MF000');
    } catch (phpmailerException $e) {
        die('MF254');
    } catch (Exception $e) {
        die('MF255');
    }

    Comment faire pour récupérer la réponse à toutes les question posés ??

    Merci pour votre aide

  2. #2
    Modérateur
    Avatar de sabotage
    Homme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    29 208
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2005
    Messages : 29 208
    Par défaut
    Tu as déjà ajouté les champs dans le formulaire ou pas ?
    Parce que je ne suis pas farci les 300 lignes de code mais on dirait qu'il est prévu pour envoyer toutes les données passées dans le formulaire.
    N'oubliez pas de consulter les FAQ PHP et les cours et tutoriels PHP

  3. #3
    Futur Membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Février 2017
    Messages
    4
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Février 2017
    Messages : 4
    Par défaut
    Bonjour Sabotage,

    Merci pour ton aide

    Oui j'ai déjà inséré tous les champs que je souhaitais dans le formulaire en HTML.
    Ce formulaire fonctionne parfaitement lorsque je le met en ligne: www.ecorenovationfrance.fr/contacts.html

    Par contre, lorsque je recois le mail de réponse, je n'ai pas les champs que j'ai ajouté.

    Merci à toi

  4. #4
    Modérateur
    Avatar de sabotage
    Homme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    29 208
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2005
    Messages : 29 208
    Par défaut
    A quoi ressemble rd-mailform.tpl ?
    N'oubliez pas de consulter les FAQ PHP et les cours et tutoriels PHP

  5. #5
    Futur Membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Février 2017
    Messages
    4
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Février 2017
    Messages : 4
    Par défaut
    Tu trouvera le fichier en pièce jointe

    Merci
    Fichiers attachés Fichiers attachés

  6. #6
    Futur Membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Février 2017
    Messages
    4
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Février 2017
    Messages : 4
    Par défaut
    Le TPL ou le PHP ?

    Au cas où, voici aussi le .tpl

    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
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head> 
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="viewport" content="initial-scale=1.0" />
        <meta name="format-detection" content="telephone=no" />
        <title><!-- #{Subject} --></title>
        <style type="text/css">  
        #outlook a {
          padding: 0;
        }
        body {
          width: 100% !important;
          -webkit-text-size-adjust: 100%;
          -ms-text-size-adjust: 100%;
          margin: 0;
          padding: 0;
        }
        .ExternalClass {
          width: 100%;
        }
        .ExternalClass,
        .ExternalClass span,
        .ExternalClass font,
        .ExternalClass td,
        .ExternalClass div {
          line-height: 100%;
        }
        .ExternalClass p {
          line-height: inherit;
        }
        #body-layout {
          margin: 0;
          padding: 0;
          width: 100% !important;
          line-height: 100% !important;
        }
        img {
          display: block;
          outline: none;
          text-decoration: none;
          -ms-interpolation-mode: bicubic;
        }
        a img {
          border: none;
        }
        table td {
          border-collapse: collapse;
        }
        table {
          border-collapse: collapse;
          mso-table-lspace: 0pt;
          mso-table-rspace: 0pt;
        }
        a {
          color: orange;
          outline: none;
        }
        </style>
      </head>
      <body id="body-layout" style="background: #406c8d;">
        <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
          <tr>
            <td align="center" valign="top" style="padding: 0 15px;background: #406c8d;">
              <table align="center" cellpadding="0" cellspacing="0" border="0">
                <tr>
                  <td height="15" style="height: 15px; line-height:15px;"></td>
                </tr>
                <tr>
                  <td width="600" align="center" valign="top" style="border-radius: 4px; overflow: hidden; box-shadow: 3px 3px 6px 0 rgba(0,0,0,0.2);background: #dde1e6;">
                    <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
                      <tr>
                        <td align="center" valign="top" style="border-top-left-radius: 4px; border-top-right-radius: 4px; overflow: hidden; padding: 0 20px;background: #302f35;">
                          <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                              <td height="30" style="height: 30px; line-height:30px;"></td>
                            </tr>
                            <tr>
                              <td align="left" valign="top" style="font-family: Arial, sans-serif; font-size: 32px; mso-line-height-rule: exactly; line-height: 32px; font-weight: 400; letter-spacing: 1px;color: #ffffff;">Notification</td>
                            </tr>
                            <tr>
                              <td height="30" style="height: 30px; line-height:30px;"></td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                      <tr>
                        <td align="center" valign="top" style="padding: 0 20px;">
                          <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                              <td height="30" style="height: 30px; line-height:30px;"></td>
                            </tr> 
                            <tr> 
                              <td align="left" valign="top" style="font-family: Arial, sans-serif; font-size: 14px; mso-line-height-rule: exactly; line-height: 22px; font-weight: 400;color: #302f35;">Hi, someone left a message for you at <!-- #{SiteName} --></td> 
                            </tr>
                            <tr> 
                              <td height="20" style="height: 20px; line-height:20px;"></td>
                            </tr>
                            <tr>
                              <td align="center" valign="top">
                                <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
                                  <tr>
                                    <td align="center" valign="top" style="background: #d1d5da;">
                                      <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                          <td height="1" style="height: 1px; line-height:1px;"></td>
                                        </tr>
                                      </table>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td align="center" valign="top" style="background: #e4e6e9;">
                                      <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                          <td height="2" style="height: 2px; line-height:2px;"></td>
                                        </tr>
                                      </table>
                                    </td>
                                  </tr>
                                </table>
                              </td>
                            </tr>
                            <tr>
                              <td height="20" style="height: 20px; line-height:20px;"></td>
                            </tr>
                            <tr>
                              <td align="left" valign="top" style="font-family: Arial, sans-serif; font-size: 24px; mso-line-height-rule: exactly; line-height: 30px; font-weight: 700;color: #302f35;">
                              	<!-- #{Subject} -->
                              </td>
                            </tr>
                            <tr>
                              <td height="20" style="height: 20px; line-height:20px;"></td>
                            </tr>
                            <tr>
                              <td align="center" valign="top">
                                <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
                                  <tr>
                                    <td align="center" valign="top">
                                      <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                          <td width="40" align="left" valign="top" style="padding: 0 10px 0 0;font-family: Arial, sans-serif; font-size: 14px; mso-line-height-rule: exactly; line-height: 20px; font-weight: 400;color: #302f35;font-weight: 700;"><!-- #{FromState} --></td>
                                          <td align="left" valign="top" style="font-family: Arial, sans-serif; font-size: 14px; mso-line-height-rule: exactly; line-height: 20px; font-weight: 400;color: #302f35;"><!-- #{FromEmail} --></td> 
                                        </tr> 
                                      	<!-- #{BeginInfo} -->
                                        <tr> 
                                          <td width="40" align="left" valign="top" style="padding: 0 10px 0 0;font-family: Arial, sans-serif; font-size: 14px; mso-line-height-rule: exactly; line-height: 20px; font-weight: 400;color: #302f35;font-weight: 700;"><!-- #{InfoState} --></td>
                                          <td align="left" valign="top" style="font-family: Arial, sans-serif; font-size: 14px; mso-line-height-rule: exactly; line-height: 20px; font-weight: 400;color: #302f35;"><!-- #{InfoDescription} --></td>
                                        </tr>
                                      	<!-- #{EndInfo} -->                                    
                                      </table>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td height="12" style="height: 12px; line-height:12px;"></td>
                                  </tr>
                                  <tr>
                                    <td align="left" valign="top" style="font-family: Arial, sans-serif; font-size: 14px; mso-line-height-rule: exactly; line-height: 20px; font-weight: 400;color: #302f35;font-weight: 700;"><!-- #{MessageState} --></td>
                                  </tr>
                                  <tr>
                                    <td align="left" valign="top" style="font-family: Arial, sans-serif; font-size: 14px; mso-line-height-rule: exactly; line-height: 20px; font-weight: 400;color: #302f35;">
                                    <!-- #{MessageDescription} -->   
                                    </td>
                                  </tr>
                                </table>
                              </td>
                            </tr>
                            <tr>
                              <td height="40" style="height: 40px; line-height:40px;"></td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr>
                  <td height="20" style="height: 20px; line-height:20px;"></td>
                </tr>
                <tr>
                  <td width="600" align="center" valign="top">
                    <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
                      <tr>
                        <td align="center" valign="top" style="font-family: Arial, sans-serif; font-size: 12px; mso-line-height-rule: exactly; line-height: 18px; font-weight: 400;color: #a1b4c4;">This is an automatically generated email, please do not reply.</td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr>
                  <td height="20" style="height: 20px; line-height:20px;"></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </body>
    </html>

Discussions similaires

  1. formulaire html et php
    Par aether dans le forum Langage
    Réponses: 2
    Dernier message: 11/02/2008, 20h42
  2. [Wamp] Problème passage données d'un formulaire .Html à fichier .php
    Par lolymeupy dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 12
    Dernier message: 05/02/2008, 15h51
  3. Affichage d'un formulaire HTML dans PHP
    Par super-java dans le forum Langage
    Réponses: 5
    Dernier message: 25/10/2007, 16h10
  4. formulaires html vers php
    Par chexna dans le forum Langage
    Réponses: 6
    Dernier message: 31/07/2006, 19h41
  5. Formulaire html retour php
    Par Alex123 dans le forum Langage
    Réponses: 11
    Dernier message: 13/06/2006, 18h52

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