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

HTML Discussion :

contact


Sujet :

HTML

  1. #1
    Membre éclairé Avatar de kevinf
    Profil pro
    Développeur informatique
    Inscrit en
    Juin 2005
    Messages
    863
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juin 2005
    Messages : 863
    Par défaut contact
    Salut,
    voici mon site : http://antiquarius.free.fr/site/contact.php
    Vous voyez un formulaire, remplissez le bien sans faire de fautes et cliquez sur envoyer. Vous arrivez sur une page vous remerciant. Tout marche bien.
    Maintenant revenez au fomulaire et ne remplissez rien, vous retombez sur envoi.php, mais là il manque un bout du tableau et le bas de page, alors que quand on rempli normalement le fomulaire, tout vas bien.

    Voici le code de envoi.php :
    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
     <?
    include("config.php");
     
    $prenom = $_POST["prenom"];
    $sonmail = $_POST["sonmail"];
    $urlsite = $_POST["urlsite"];
    $commentaire = $_POST["commentaire"];
     
    if(empty($prenom) OR empty($sonmail) OR empty($urlsite) OR empty($commentaire))
            {
            print '<center><b><font face="verdana" size="4">Erreur , champs manquants :</b></font></center><br><br>';
                    if(empty($prenom)) { print '<center><font face="verdana" size="2">Vous n\'avez pas saisi votre prénom !<br>'; }
                    if(empty($sonmail)) { print '<center>Vous n\'avez pas saisi votre adresse email !<br>'; }
                    if(empty($sujet)) { print '<center>Vous n\'avez pas saisi le sujet de votre message !<br>'; }
                    if(empty($urlsite)) { print '<center>Vous n\'avez pas saisi l\'url de votre site !<br>'; }
                    if(empty($commentaire)) { print '<center>Aucun commentaire n\'a été saisi .<br>'; } 
            print '<p align="center"><a href="javascript:history.back()">Retour</a>'; exit;
            }
            else
            {
    $sonmail = $_POST['sonmail'];
    $copie = $_POST["copie"];
    $point = strpos($sonmail,".");
    $arobas = strpos($sonmail,"@");
    if($point == '')
    {
    echo '<center><br>Votre adresse email est invalide<br><p align="center"><a href="javascript:history.back()">Retour</a><br>';  exit;
    }
    elseif($arobas == '')
    {
    echo '<center><br>Votre adresse email est invalide<br><p align="center"><a href="javascript:history.back()">Retour</a><br>'; exit;
    }
    else
    {
    if($copie == "oui" ) {
           Mail("$sonmail","$sujet","$m1","from: $from"); 
           Mail("$votremail","$sujet","$m2","from: $votremail");
    echo "<center>Votre message a bien été envoyer !<br><br>Un email de confirmation a été envoyer à l'adresse : $sonmail<br><br>Merci pour votre message , A bientôt . L'équipe $votresite";exit;
    } else {
    }
    echo "<center>Votre message a bien été envoyer !<br>Merci pour votre message , A bientôt . L'équipe $votresite";
    {
           Mail("$votremail","$sujet","$m2","from: $votremail");
    }
     
    }
    }
    ?>
    Merci de m'aider

  2. #2
    Membre émérite Avatar de trattos
    Profil pro
    Inscrit en
    Juillet 2003
    Messages
    1 000
    Détails du profil
    Informations personnelles :
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Juillet 2003
    Messages : 1 000
    Par défaut
    Je ne pense pas que cela vienne de ton code il m'a l'air bon! Et je n'ai pas eu ce problême avec mon navigateur!

  3. #3
    Membre éclairé Avatar de kevinf
    Profil pro
    Développeur informatique
    Inscrit en
    Juin 2005
    Messages
    863
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juin 2005
    Messages : 863
    Par défaut
    sa vien de koi alors?

  4. #4
    Membre émérite
    Profil pro
    Inscrit en
    Juin 2002
    Messages
    1 012
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2002
    Messages : 1 012
    Par défaut
    déjà ta page n'est pas complète : on ne voit que le traitement de l'envoi, mais rien concernant le reste de la page, et en particulier concernant le bas de la page manquante

    ne serait-ce pas ton instruction exit dans ton premier if (empty...) ?

  5. #5
    Membre éclairé Avatar de kevinf
    Profil pro
    Développeur informatique
    Inscrit en
    Juin 2005
    Messages
    863
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juin 2005
    Messages : 863
    Par défaut
    je dois faire koi alors?avec ce exit

  6. #6
    Membre éclairé Avatar de kevinf
    Profil pro
    Développeur informatique
    Inscrit en
    Juin 2005
    Messages
    863
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juin 2005
    Messages : 863
    Par défaut
    voici le code de ma page envoi.php
    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
    <!-- vars_main.php -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>.:: Antiquarius.free.fr ::. </title>
     
     
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="Keywords" content="antiquarius, Antiquarius, antiquitées de chine, chine, Chine, Gilles, gilles, faussadier, Faussadier, gilles faussadier, faussadier gilles, objet chinois, chinois, salons, brocantes, foire de paris, vive la maison, le chine">
     
    <style type="text/css">
    <!--
    body,td,th {
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: 11px;
            color: #000000;
    }
    body {
            margin-left: 0px;
            margin-top: 10px;
            margin-right: 0px;
            margin-bottom: 10px;
            background-color: #F2F5EA;
             scrollbar-face-color: #ffffff;
                scrollbar-shadow-color: #993399;
                scrollbar-highlight-color: #FFFFFF;
                scrollbar-3dlight-color: #993399;
                scrollbar-darkshadow-color: #993399;
                scrollbar-track-color: #FFCCCC;
                scrollbar-arrow-color: #993399;
       }
     
    }
     
    .title {
            font-size:14px;
                    font-weight: bold;
                    color: #98C70A;
                    }
    .titleB {
            font-size:14px;
                    font-weight: bold;
                    color: #3399CC;
                    }
     
    a:link {
            color: #999999;
            text-decoration: none;
    }
    a:visited {
            text-decoration: none;
            color: #999999;
    }
    a:hover {
            text-decoration: underline;
            color: #98C70A;
    }
    a:active {
            text-decoration: none;
            color: #CCCCCC;
    }
    .WhTitle {
              font-size: 13px;
                      font-weight: bold;
                      color:#ffffff;
                      }
    .bottomtxt {
                font-size:9px;
                            color:#333333;
                            }
    .logo {color: #CACACA}
    .formMaj {
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: 9px;
            text-decoration: none;
            background-color: #FFFFFF;
            border: 1px solid #993399;;
             }
    -->
    </style>
     
    </head>
    <body> <table width="790" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> 
      <tr> 
        <td height="1" colspan="3" bgcolor="#E7E8E4"></td>
      </tr> 
      <tr> 
        <td width="1" bgcolor="#E7E8E4"></td> 
        <td> <!-- corps --> 
          <table width="100%"  border="0" cellpadding="0" cellspacing="0" background="img/graph/greenban.jpg" style="background-repeat:no-repeat;"> 
            <tr> 
              <td align="left" valign="top"><br> 
    			<table width="" border="0" cellspacing="0" cellpadding="0">  
      <tr>
        <td width="10"></td>
        <td><a href="http://antiquarius.free.fr"><img src="img/graph/logo.gif"  border="0"></a></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td align="center"><span class="logo"><font color="#FF0000">a n t i q u a r i u s . f r e e . f r </span></td></font>
      </tr>
    </table>
    			<br>
              </td> 
              <td align="right" valign="top" class="logo">
              <a href="javascript:void(0)" onClick="window.external.AddFavorite('http://antiquarius.free.fr/', 'Antiquarius.free.fr - Antiquitées de Chine');return(false)"; title="Ajouter ce site à vos Favoris">Ajouter aux Favoris</a> | <a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://antiquarius.free.fr/');" title="Utiliser ce site comme page de démarrage">Mettre en page de d&eacute;marrage</a>&nbsp;</td>
            </tr> 
          </table> 
          <table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0"> 
            <tr> 
              <td width="180" height="100%" valign="top" bgcolor="#EEFBEE"> <table width="99%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#33CC33"> 
                  <tr> 
                    <td height="15" align="center" valign="middle" class="WhTitle">Menu</td> 
                  </tr> 
                </table> 
                <table width="100%"  border="0" cellspacing="2" cellpadding="0"> 
                  <tr> 
                    <td>
    				<br>
                    <a href="index.php?page=home">&middot; Accueil</a><br>
    				<a href="index.php?page=presentation">&middot; Présentation</a><br>
     
    				<br><br>
    				</td> 
                  </tr> 
                </table> 
                <table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#CC0066">
                  <tr>
                    <td height="15" align="center" valign="middle" class="WhTitle">Actualit&eacute;</td>
                  </tr>
                </table>
                <table width="100%"  border="0" cellspacing="2" cellpadding="0">
                  <tr>
                    <td align="left" valign="top"><br>
                        <a href="index.php?page=nouveautees">&middot; Nouveautées</a><br>
                        <a href="index.php?page=agenda" >&middot; Agenda</a><br>
                        <br>
                        <br>
                    </td>
                  </tr>
                </table>
                <table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFCC00">
                  <tr>
                    <td height="15" align="center" valign="middle" class="WhTitle">Images</td>
                  </tr>
                </table>
                <table width="100%"  border="0" cellspacing="2" cellpadding="0">
                  <tr>
                    <td align="left" valign="top"><br>
    <a href="http://antiquarius.free.fr/site/photos.php">&middot; Photos</a><br>
    	<a href="http://antiquarius.free.fr/site/photos.php?doss=Nos%20produits">&middot; Photos de nos produits</a><br>
    <a href="http://antiquarius.free.fr/site/photos.php?doss=Nos%20stand">&middot; Photos de nos stand</a>
    <br><br>				</td>
                  </tr>
                </table>
                <table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#CC9900"> 
                  <tr> 
                    <td height="15" align="center" valign="middle" class="WhTitle">Votre avis</td> 
                  </tr> 
                </table> 
                <table width="100%"  border="0" cellspacing="2" cellpadding="0"> 
                  <tr> 
                    <td>
    				<br> 
                    <a href="http://antiquarius.free.fr/site/index.php?page=livreor">&middot; Le livre d'or</a><br>
     
    <a href="sondage.php">&middot; Sondage</a>
    		        <br><br>
    				</td> 
                  </tr> 
              </table>
    		  <table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FF99CC">
                  <tr>
                    <td height="15" align="center" valign="middle" class="WhTitle">Divers</td>
                  </tr>
                </table>
    		  <table width="100%"  border="0" cellspacing="2" cellpadding="0"> 
                  <tr> 
                    <td>
    				<br> 
                    <a href="index.php?page=links">&middot; Liens</a><br>
    				<a href="contact.php">&middot; Contact</a><br>
    <a href="index.php?page=newsletter">&middot; Newsletter</a>
    				<br><br>
    		        </td> 
                  </tr> 
              </table>  
    		  </td> 
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
              <td width="1" height="100%" background="img/graph/pt.gif" style="background-repeat:repeat-y"></td> 
              <td align="left" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#3399CC"> 
                  <tr> 
                    <td height="15" align="center" valign="middle" class="WhTitle">Antiquarius</td> 
                  </tr> 
                </table> 
                <br> 
                <!-- home.php -->
    <table width='100%'  border='0' cellspacing='0' cellpadding='0'>
      <tr>
       <td align='left' valign='top'><table width='100%'  border='0' cellspacing='2' cellpadding='0'>
          <tr>
            <td>
    					<table width='95%' border='0' align='center' cellpadding='0' cellspacing='0'>
      <tr>
        <td height='1' colspan='3' bgcolor='#3399CC'></td>
        </tr>
      <tr>
        <td width='1' bgcolor='#3399CC'></td>
        <td bgcolor='#F0F8FB'><table width='100%'  border='0' cellspacing='0' cellpadding='2'>
          <tr>
            <td>
          <span class='titleB'> &gt; Contact</span>
    	  <br>
          <br>
          <br>
    	 <?
    include("config.php");
     
    $prenom = $_POST["prenom"];
    $sonmail = $_POST["sonmail"];
    $urlsite = $_POST["urlsite"];
    $commentaire = $_POST["commentaire"];
     
    if(empty($prenom) OR empty($sonmail) OR empty($urlsite) OR empty($commentaire))
            {
            print '<center><b><font face="verdana" size="4">Erreur , champs manquants :</b></font></center><br><br>';
                    if(empty($prenom)) { print '<center><font face="verdana" size="2">Vous n\'avez pas saisi votre prénom !<br>'; }
                    if(empty($sonmail)) { print '<center>Vous n\'avez pas saisi votre adresse email !<br>'; }
                    if(empty($sujet)) { print '<center>Vous n\'avez pas saisi le sujet de votre message !<br>'; }
                    if(empty($urlsite)) { print '<center>Vous n\'avez pas saisi l\'url de votre site !<br>'; }
                    if(empty($commentaire)) { print '<center>Aucun commentaire n\'a été saisi .<br>'; } 
            print '<p align="center"><a href="javascript:history.back()">Retour</a>'; exit;
            }
            else
            {
    $sonmail = $_POST['sonmail'];
    $copie = $_POST["copie"];
    $point = strpos($sonmail,".");
    $arobas = strpos($sonmail,"@");
    if($point == '')
    {
    echo '<center><br>Votre adresse email est invalide<br><p align="center"><a href="javascript:history.back()">Retour</a><br>';  exit;
    }
    elseif($arobas == '')
    {
    echo '<center><br>Votre adresse email est invalide<br><p align="center"><a href="javascript:history.back()">Retour</a><br>'; exit;
    }
    else
    {
    if($copie == "oui" ) {
           Mail("$sonmail","$sujet","$m1","from: $from"); 
           Mail("$votremail","$sujet","$m2","from: $votremail");
    echo "<center>Votre message a bien été envoyer !<br><br>Un email de confirmation a été envoyer à l'adresse : $sonmail<br><br>Merci pour votre message , A bientôt . L'équipe $votresite";exit;
    } else {
    }
    echo "<center>Votre message a bien été envoyer !<br>Merci pour votre message , A bientôt . L'équipe $votresite";
    {
           Mail("$votremail","$sujet","$m2","from: $votremail");
    }
     
    }
    }
    ?>
     
    </td>
          </tr>
        </table></td>
        <td width='1' bgcolor='#3399CC'></td>
      </tr>
      <tr>
        <td height='1' colspan='3' bgcolor='#3399CC'></td>
        </tr>
    </table>
     
     
    		</td>
          </tr>
        </table
        ></td>
     
     
        <td width="1" height="100%"  style="background-repeat:repeat-y"></td>
        <td width="150" align="left" valign="top" ><table width="100%"  border="0" cellpadding="0" cellspacing="0" >
                </table>
     
     
     
     
     
     
     
     
     
    </td>
      </tr>
    </table>
     
     
     
     
     
     
     
    <!-- /home.php -->   		  </td>
            </tr> 
          </table>
    	  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="100%" height="1" background="img/graph/ptx.gif" style="background-repeat:repeat-x "></td>
            </tr>
            <tr>
              <td align="center" background="img/graph/bg_bottom.jpg" class="bottomtxt"><font color="#FF0000"><br>
                &copy; 2005 Antiquarius.free.fr - <a href="http://www.nature-light.com" target="_blank" ><font color="#3366FF">Nature-light</font></a> - SIRET A 401 334 966 - APE 526 E <br> Navigation optimis&eacute;e pour <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=fr&FamilyID=1e1550cb-5e5d-48f5-b02b-20b602228de6" title="Microsoft Internet Explorer" target="_blank"><font color="#3366FF">IE</font></a> 5 et +  
      			<br>Hébergé par <a href="http://www.free.fr/" title="www.free.fr" target="_blank"><font color="#3366FF">ƒ<em>ree</em>.fr</font></a></font>
              <br></td>
            </tr>
          </table>      <!-- /corps -->
    	</td> 
        <td width="1" bgcolor="#E7E8E4"></td> 
      </tr> 
      <tr> 
        <td height="1" colspan="3" bgcolor="#E7E8E4"></td> 
      </tr> 
    </table> 
    </body>
    </html>
    Vous voyez qu'il y a le bas de page...

  7. #7
    Membre émérite
    Profil pro
    Inscrit en
    Juin 2002
    Messages
    1 012
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2002
    Messages : 1 012
    Par défaut
    oui il semble qu'il y ait le bas de page
    j'ai pas tout lu c'est long

    mais pour moi, il faut virer l'instruction exit;

    donc la ligne devient
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    echo "<center>Votre message a bien été envoyer !<br><br>Un email de confirmation a été envoyer à l'adresse : $sonmail<br><br>Merci pour votre message , A bientôt . L'équipe $votresite";

  8. #8
    Membre éclairé Avatar de kevinf
    Profil pro
    Développeur informatique
    Inscrit en
    Juin 2005
    Messages
    863
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juin 2005
    Messages : 863
    Par défaut
    merci
    mais en fet, il ne fallait pas enlever seulement à cette ligne, mais tous les exit;
    mais c'est toi qui ma mit sur la piste
    merci encore

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 8
    Dernier message: 23/01/2007, 21h02
  2. Comment récupérer la liste des contacts de outlook express?
    Par arnaud_verlaine dans le forum Outlook Express / Windows Mail
    Réponses: 6
    Dernier message: 12/10/2004, 15h53
  3. [C#] Synchronisation de contacts Outlook
    Par GéniuS77 dans le forum Windows Forms
    Réponses: 7
    Dernier message: 07/06/2004, 13h09

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