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

Mise en page CSS Discussion :

Formulaire de contact


Sujet :

CSS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Nouveau membre du Club
    Homme Profil pro
    Testeur
    Inscrit en
    Juillet 2017
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Canada

    Informations professionnelles :
    Activité : Testeur

    Informations forums :
    Inscription : Juillet 2017
    Messages : 6
    Par défaut Formulaire de contact
    Bonsoir a tous

    J ai un formulaire de contact dans une page html et un css contact form, je cherche a quel endroit inscrit le émail quand ont appuie sur le bouton envoyez

    Code du formulaire html


    Code html : 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
          <div class="full-width-container block-2">
            <div class="container">
              <div class="row">
                <div class="grid_5">
                  <form id="contact-form">
                    <div class="contact-form-loader"></div>
                    <header>
                      <h2><span>Contact <br>
                        </span></h2>
                    </header>
                    <fieldset> <label class="name"> <span class="text">Nom:</span>
                        <input name="name" placeholder="" value="" data-constraints="@Required @JustLetters"
     
                          type="text"> <span class="empty-message">*champ
                          obligatoire.</span> <span class="error-message">*Nom
                          invalide.</span>&nbsp;</label><label class="email"><span class="text">Courriel:</span>
                        <input name="email" placeholder="" value="" data-constraints="@Required @Email"
     
                          type="text"> <span class="empty-message">*champ
                          obligatoire.</span> <span class="error-message">*courriel
                          non valide.</span> </label> <label class="phone"> <span
     
                          class="text">Téléphone:</span> <input name="phone" placeholder=""
     
                          value="" data-constraints="@Required @JustNumbers" type="text">
                        <span class="empty-message">*champ obligatoire.</span> <span
     
                          class="error-message">*Téléphone non valide.</span> </label>
                      <label class="message"> <span class="text">Message:</span> <textarea
     
    name="message" placeholder="" data-constraints="@Required @Length(min=5,max=999999)"></textarea>
                        <span class="empty-message">*champ obligatoire.</span> <span
     
                          class="error-message">*message trop cour.</span> </label>
                      <div class="cont_btn"> <a href="#" data-type="reset" class="btn">Effacer</a>
                        <a href="#" data-type="submit" class="btn">Envoyer</a>
                      </div>
                    </fieldset>
                    <div class="modal fade response-message">
                      <div class="modal-dialog">
                        <div class="modal-content">
                          <div class="modal-header"> <button type="button" class="close"
     
                              data-dismiss="modal" aria-hidden="true">x</button>
                            <h4 class="modal-title">Modal title</h4>
                          </div>
                          <div class="modal-body"> Merci! Votre message a bien été
                            envoyé. Nous y répondrons dès que possible. </div>
                        </div>
                      </div>
                    </div>
                  </form>
                </div>

    Contact form.css

    Code css : 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
    367
    368
    369
    370
    371
    372
    373
    /* Contact Form variables
    ========================================================*/
    /* Contact Form Basic Styles 
    ========================================================*/
    #contact-form {
      position: relative;
    }
    #contact-form label {
      position: relative;
      display: inline-block;
      width: 100%;
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      margin-bottom: 22px;
      font-family: 'Open Sans', sans-serif;
    }
    #contact-form label.email { }
    #contact-form label.message {
      margin-bottom: 18px;
    }
    #contact-form fieldset {
      border: none;
    }
    /* Contact Form Placeholder Styles 
    ========================================================*/
    #contact-form ._placeholder {
      width: calc(100% - 20px) !important;
      position: absolute;
      left: 0;
      top: 0;
      display: block;
      line-height: 29px;
      font-size: 14px;
      padding: 0 0 0 20px;
      cursor: text;
      color: #727070;
      font-family: 'Open Sans', sans-serif;
    }
    #contact-form ._placeholder.focused {} 
    #contact-form ._placeholder.hidden {
      display: none;
    }
    #contact-form .file ._placeholder {
      display: none;
    }
    /* Contact Form Input 
    ========================================================*/
    #contact-form input[type='text'] {
      width: calc(100% - 20px);
      background: #fff;
      line-height: 29px;
      font-size: 13px;
      padding: 0 0 0 20px;
      outline: none;
      height: 29px;
      margin: 0;
      color: #727070;
      border: 1px solid #c8c2c2;
      font-family: 'Open Sans', sans-serif;
    }
    #contact-form input[type='text']:focus {
    }
    /* Contact Form File Input 
    ========================================================*/
    #contact-form .input-group {
      position: relative;
      display: table;
      border-collapse: separate;
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
    }
    #contact-form input.form-control[disabled] {
      cursor: not-allowed;
      background-color: #eeeeee;
      opacity: 1;
    }
    #contact-form input.form-control {
      position: relative;
      z-index: 2;
      float: left;
      width: 100%;
      margin-bottom: 0;
      padding: 6px 12px;
      -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
      box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
      -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
      -moz-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
      transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    }
    #contact-form .input-group-btn:first-child > .btn {
      border-bottom-right-radius: 0;
      border-top-right-radius: 0;
      margin: 0 -1px 0 0;
    }
    #contact-form .input-group .form-control:last-child {
      border-bottom-left-radius: 0;
      border-top-left-radius: 0;
    }
    #contact-form .input-group-btn:last-child > .btn {
      border-bottom-left-radius: 0;
      border-top-left-radius: 0;
    }
    #contact-form .input-group .form-control:first-child {
      border-bottom-right-radius: 0;
      border-top-right-radius: 0;
    }
    #contact-form input.form-control,
    #contact-form .input-group-btn {
      display: table-cell;
      border-collapse: separate;
      float: none !important;
    }
    #contact-form .input-group-btn label {
      width: auto;
      margin-left: -1px;
    }
    #contact-form .input-group-btn {
      position: relative;
      font-size: 0;
      white-space: nowrap;
      width: 1%;
      vertical-align: middle;
    }
    #contact-form .btn {
      text-align: center;
      vertical-align: middle;
      cursor: pointer;
      font-weight: normal;
      white-space: nowrap;
      margin: 5px 60px 0 0;
      width: 139px;
    }
    #contact-form .btn-default {
      color: #333333;
      background-color: #ffffff;
      border-color: #cccccc;
    }
    #contact-form .btn-default:hover {
      color: #333333;
      background-color: #ebebeb;
      border-color: #adadad;
    }
    #contact-form .btn-default:active,
    #contact-form .btn-default:focus {
      outline-offset: -2px;
      outline: none;
      -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
      box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    }
    /* Contact Form Textarea 
    ========================================================*/
    #contact-form textarea {
      width: calc(100% - 30px);
      background: #ffffff;
      line-height: 24px;
      font-size: 13px;
      padding: 0;
      outline: none;
      resize: none;
      height: 156px;
      border: 1px solid #c8c2c2;
      color:#606465;
      padding: 11px 10px 10px 20px;
      font-family: Arial, Helvetica, sans-serif;
    }
    #contact-form textarea:focus {}
    /* Contact Form Error messages
    ========================================================*/
    #contact-form .empty-message,
    #contact-form .error-message {
      position: absolute;
      right: 3px;
      top: 2px;
      color: #fa5555;
      height: 0;
      overflow: hidden;
      font-size: 11px;
      -webkit-transition: 0.3s ease-in height;
      transition: 0.3s ease-in height;
      z-index: 99;
      font-family: 'Open Sans', sans-serif;
    }
    #contact-form .invalid .error-message,
    #contact-form .empty .empty-message {
      height: 20px;
    }
    /* Contact Form Processing Box
    ========================================================*/
    #contact-form .contact-form-loader {
      position: absolute;
      z-index: -1;
      width: 100%;
      height: 100%;
      overflow: hidden;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.8);
      background-image: url('../images/form-loader.gif');
      background-repeat: no-repeat;
      background-position: 50% 50%;
      opacity: 0;
    }
    #contact-form.processing .contact-form-loader {
      opacity: 1;
      z-index: 99;
      -webkit-transition: all 0.3s ease-in;
      transition: all 0.3s ease-in;
    }
    /* Contact Form Modal 
    ========================================================*/
    .modal-open {
      overflow: hidden;
    }
    #contact-form .modal {
      display: none;
      overflow: auto;
      overflow-y: scroll;
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 1050;
      -webkit-overflow-scrolling: touch;
      outline: 0;
      font-family: 'Open Sans', sans-serif;
      font-size: 13px;
    }
    #contact-form .modal h4 {
      font-weight: bold !important;
      padding: 0 !important;
      margin: 0 !important;
      color: #000 !important;
      font-size: 15px;
    }
    .modal.fade .modal-dialog {
      -webkit-transform: translate(0, -25%);
      -ms-transform: translate(0, -25%);
      transform: translate(0, -25%);
      -webkit-transition: -webkit-transform 0.3s ease-out;
      -moz-transition: -moz-transform 0.3s ease-out;
      -o-transition: -o-transform 0.3s ease-out;
      transition: transform 0.3s ease-out;
    }
    .modal.in .modal-dialog {
      -webkit-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      transform: translate(0, 0);
    }
    .modal-content {
      position: relative;
      background-color: #ffffff;
      border: 1px solid #999999;
      border: 1px solid rgba(0, 0, 0, 0.2);
      border-radius: 6px;
      -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
      box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
      background-clip: padding-box;
      outline: none;
    }
    .modal-backdrop {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 1040;
      background-color: #000000;
    }
    .modal-backdrop.fade {
      opacity: 0;
      filter: alpha(opacity=0);
    }
    .modal-backdrop.in {
      opacity: 0.5;
      filter: alpha(opacity=50);
    }
    .modal-header {
      padding: 15px;
      border-bottom: 1px solid #e5e5e5;
      min-height: 16.42857143px;
    }
    .modal-header .close {
      margin-top: -2px;
    }
    .modal-title {
      margin: 0;
      line-height: 1.42857143;
    }
    .modal-body {
      position: relative;
      padding: 20px;
      color: #525151 !important;
    }
    .modal-dialog {
      width: 600px;
      margin: 10px auto;
    }
    @media only screen and (max-width: 768px) {
      .modal-dialog {
        position: relative;
        width: auto;
        margin: 10px;
      }
    }
    /* Contact Form Close icon 
    ========================================================*/
    .close {
      float: right;
      font-size: 21px;
      font-weight: bold;
      line-height: 1;
      color: #000000 !important;
      text-shadow: 0 1px 0 #ffffff;
      opacity: 0.2;
      filter: alpha(opacity=20);
    }
    .close:hover,
    .close:focus {
      color: #000000 !important;
      text-decoration: none;
      cursor: pointer;
      opacity: 0.5;
      filter: alpha(opacity=50);
    }
    button.close {
      padding: 0;
      cursor: pointer;
      background: transparent;
      border: 0;
      -webkit-appearance: none;
    }
    #contact-form .btn {
      margin-left: auto;
     
    }
    /* Contact for on index page-break-after
    =========================================================*/
     
    .index #contact-form label {
      margin-bottom: 9px;
    }
    .index #contact-form input[type='text'], .index #contact-form textarea {
      background: #fff;
      border: none;
      width: calc(100% - 10px);
      padding-top: 6px;
      padding-bottom: 7px;
    }
    .index #contact-form textarea { width: calc(100% - 20px); }
    .index #contact-form textarea { height: 70px;}
    .index #contact-form a {
      font-size: 14px;
      font-style: italic;
      color: #f00;
      font-weight: 400;
     }
     .index #contact-form a:hover {color: #000;}
    .index #contact-form ._placeholder {
      font-size: 11px;
      color: #666;
      font-family: 'Open Sans', sans-serif;
    }
    .index #contact-form label.name { margin-top: 7px; }
    #contact-form .text {
      font-size: 18px;
      font-family: 'Open Sans', sans-serif;
      margin-bottom: 3px;
    }

  2. #2
    Invité
    Invité(e)
    Par défaut
    Bonjour,

    un formulaire a besoin :
    • d'un script de traitement.
    • et qu'on définisse la méthode d'envoi des données : $_POST ou $_GET



    Code : Sélectionner tout - Visualiser dans une fenêtre à part
                  <form id="contact-form" action="traitement.php" method="post">
    L'email s'indique dans le script de traitement.

    "envoi email php"


    Se renseigner aussi sur :

    • phpMailer

  3. #3
    Nouveau membre du Club
    Homme Profil pro
    Testeur
    Inscrit en
    Juillet 2017
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Canada

    Informations professionnelles :
    Activité : Testeur

    Informations forums :
    Inscription : Juillet 2017
    Messages : 6
    Par défaut
    Donc si j ai bien comprit je remplace ceci:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <form id="contact-form">
    Par cela:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <form id="contact-form" action="traitement.php" method="post">
    Je doit créer un script de traitement dans une page PHP qui se nomme ( traitement ) et qui contient ceci: $_POST

    Merci

  4. #4
    Invité
    Invité(e)
    Par défaut
    Bonjour,

    je t'ai mis des liens.

    En voici un autre :


    Pour progresser, il faut apprendre.
    Pour apprendre, il faut lire, et faire les exercices.

Discussions similaires

  1. Réponses: 11
    Dernier message: 10/01/2006, 08h23
  2. [Formulaire] de contact
    Par inferno66667 dans le forum Langage
    Réponses: 6
    Dernier message: 19/12/2005, 20h32
  3. Prob avec formulaire de contact
    Par inferno66667 dans le forum Langage
    Réponses: 1
    Dernier message: 01/12/2005, 19h53
  4. Prob avec PHP sur le formulaire de contact
    Par inferno66667 dans le forum Langage
    Réponses: 7
    Dernier message: 16/11/2005, 18h06
  5. Problème d'accès formulaire de contact
    Par Mystic26 dans le forum Langage
    Réponses: 7
    Dernier message: 16/09/2005, 17h47

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