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 :

[Semi-Résolu]contact


Sujet :

HTML

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  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 [Semi-Résolu]contact
    Salut,
    allez voir ici : http://www.alastuce.com/test/accueil.php
    Et cliquez sur le lien/images " contact"
    Vous voyez un formulaires de contact,
    cliquez sur "envoyer"( ne rmplissez rien, cela ne sert à rien pour mon soucis)
    voila ce qui apparairt et surtout mon problème:
    Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/kevinf/www/test/popup/index_contact2.php on line 349
    Comment régler ce problème?

    Merci

  2. #2
    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 la ligne 349
    echo "<center> <font class="Style8a">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;

  3. #3
    Membre expérimenté Avatar de Tdeny
    Profil pro
    Inscrit en
    Juin 2004
    Messages
    287
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2004
    Messages : 287
    Par défaut
    Tu as un , ou un ; de trop ou à la place de l'autre.
    Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/kevinf/www/test/popup/index_contact2.php on line 349
    String innattendu : caractère, (ou suite de..) , attendu ',' ou ';' dans ..........php à ligne 349

  4. #4
    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
    la ligne 349
    echo "<center> <font class="Style8a">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;
    Peut tu me dire ou est le pb?

  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
    Re,
    sa y est , j'ai trouvé la solution
    Mais, maintenant regarder, donc toujours au même endroit, allez ici:
    http://www.alastuce.com/test/accueil.php
    Cliquez sur contact, vous voyez un truc venir, regardez bien le formulaire, il y a un cadre TOUT AUTOUR.
    Maintenant, cliquez sur "Envoyer" ( ne remplissez rien, cela ne sert à rien), vous tombez sur une autre page, mais ce que je ne comprend pas c'est que le cadres autour ne marche pas.

    Pourquoi?

    Merci

  6. #6
    Membre Expert
    Avatar de Nesmontou
    Homme Profil pro
    Architecte logiciel
    Inscrit en
    Septembre 2004
    Messages
    1 612
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Architecte logiciel
    Secteur : Finance

    Informations forums :
    Inscription : Septembre 2004
    Messages : 1 612
    Par défaut
    Pour le problème de la "nouvelle" page, regarde le code HTML qui a été généré : c'est n'importe quoi (désolé de le dire comme ça, mais ce code est tout sauf correct). Regarde ton code PHP qui génère cette page, il doit y avoir des corrections à apporter

  7. #7
    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 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
    <?
    include("***");
     
    $prenom = $_POST["prenom"];
    $sonmail = $_POST["sonmail"];
    $commentaire = $_POST["commentaire"];
     
    if(empty($prenom) OR empty($sonmail) OR empty($commentaire))
            {
            print '<center><b><font face="verdana" size="4" class="Style8a">Erreur , champs manquants :</b></font></center><br><br>';
                    if(empty($prenom)) { print '<center><font face="verdana" size="2" class="Style8a">Vous n\'avez pas saisi votre prénom !</font><br>'; }
                    if(empty($sonmail)) { print '<center>  <font class="Style8a">Vous n\'avez pas saisi votre adresse email !</font><br>'; }
                    if(empty($sujet)) { print '<center>  <font class="Style8a">Vous n\'avez pas saisi le sujet de votre message !</font><br>'; }
                    if(empty($commentaire)) { print '<center>  <font class="Style8a">Aucun commentaire n\'a été saisi .</font><br>'; } 
            print '<p align="center"><a href="javascript:history.back()">  <font class="menu1">Retour</font></a>';  exit;
            }
            else
            {
    $sonmail = $_POST['sonmail'];
    $copie = $_POST["copie"];
    $point = strpos($sonmail,".");
    $arobas = strpos($sonmail,"@");
    if($point == '')
    {
    echo '<center><br>  <font class="Style8a">Votre adresse email est invalide</font><br><p align="center"><a href="javascript:history.back()">  <font class="menu1">Retour</font></a><br>'; exit;
    }
    elseif($arobas == '')
    {
    echo '<center><br>  <font class="Style8a">Votre adresse email est invalide</font><br><p align="center"><a href="javascript:history.back()">  <font class="menu1">Retour</font></a><br>'; 
    }
    else
    {
    if($copie == "oui" ) {
           Mail("$sonmail","$sujet","$m1","from: $from"); 
           Mail("$votremail","$sujet","$m2","from: $votremail");
    echo "<center>  <font class='Style8a'>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");
    }
     
    }
    }
    ?>
    Que dois-je faire?

  8. #8
    Membre Expert
    Avatar de Nesmontou
    Homme Profil pro
    Architecte logiciel
    Inscrit en
    Septembre 2004
    Messages
    1 612
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Architecte logiciel
    Secteur : Finance

    Informations forums :
    Inscription : Septembre 2004
    Messages : 1 612
    Par défaut
    Ouais, bon déjà, à première vue (il est trop tard pour que je lise tout en détails), il y a des balises <p> non fermées

  9. #9
    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 la page entière :
    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
     
    <html>
    <head>
     
    <title>Alastuce.com</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href ="style.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    body {
            background-color: #000000;
    }
    -->
    </style>
    </head>
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    </td>
    	</tr>
    	<tr>
    		<td height="30" colspan="3">	</td>
    	</tr>
    	<tr>
    		<td background="images/bord_07.gif" width="15" height="18"></td>
    	  <td><table width="730" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td rowspan="7" width="10"></td>
              <td colspan="3" height="10"></td>
              <td rowspan="7" width="10"></td>
              <td colspan="3" height="10"></td>
              <td rowspan="7" width="10"></td>
            </tr>
            <tr>
              <td colspan="0" rowspan="0" valign="top"><table width="50" border="0" cellspacing="0" cellpadding="0">
     
     
     
     
     
              </table>
              </td>
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    <center><table width="500" border="0" cellspacing="0" cellpadding="0"> 
             <tr> 
               <td rowspan="6" width="10"></td> 
               <td colspan="3" rowspan="5" valign="top"><table width="0" border="0" cellspacing="0" cellpadding="0"> 
     
     
     
     
     
     
     
     
                   <tr> 
     
     
                     <td ><table width="0" border="0" cellspacing="0" cellpadding="0"> 
                       <tr> 
     
                         <td width="0">&nbsp;</td> 
                       </tr> 
     
                     </table>                   </td> 
     
                   </tr> 
     
                 </table> 
     
     
                   <table> 
     
     
                     <tr><td ><table width="1" border="0" cellspacing="0" cellpadding="0"> 
     
                       </table>                     </td> 
     
     
                     </tr> 
     
                   </table>               </td> 
               <td rowspan="6" width="10"></td> 
               <td width="23"><img src="images/cadreint_16.gif" width="23" height="11"></td> 
               <td background="images/horizon_18.gif"  width="4000" height="11"></td> 
     
               <td width="25"><img src="images/cadreint_18.gif" width="25" height="11"></td> 
               <td rowspan="6" width="10"></td> 
             </tr> 
      <tr> 
               <td><img src="images/cadreint_20.gif" width="23" height="23"></td> 
               <td bgcolor="#3b2f20" width="4000" height="23"><div align="center"><strong class="Style4"> 
               <span class="Style4"><strong>Contact</strong></span></strong></div></td> 
               <td><img src="images/cadreint_22.gif" width="25" height="23"></td> 
     
             </tr> 
     
             <tr> 
               <td><img src="images/cadreint_23.gif" width="23" height="13"></td> 
               <td background="images/horizon_27.gif" width="4000" height="13"></td> 
               <td><img src="images/cadreint_25.gif" width="25" height="13"></td> 
             </tr> 
             <tr> 
               <td background="images/vertical_33.gif" width="23"></td> 
               <td bgcolor="#b79b82" width="4000" height="176"><p align="justify" class="Style8a">
     
    <?
    include("***");
     
    $prenom = $_POST["prenom"];
    $sonmail = $_POST["sonmail"];
    $commentaire = $_POST["commentaire"];
     
    if(empty($prenom) OR empty($sonmail) OR empty($commentaire))
            {
            print '<center><b><font face="verdana" size="4" class="Style8a">Erreur , champs manquants :</b></font></center><br><br>';
                    if(empty($prenom)) { print '<center><font face="verdana" size="2" class="Style8a">Vous n\'avez pas saisi votre prénom !</font><br>'; }
                    if(empty($sonmail)) { print '<center>  <font class="Style8a">Vous n\'avez pas saisi votre adresse email !</font><br>'; }
                    if(empty($sujet)) { print '<center>  <font class="Style8a">Vous n\'avez pas saisi le sujet de votre message !</font><br>'; }
                    if(empty($commentaire)) { print '<center>  <font class="Style8a">Aucun commentaire n\'a été saisi .</font><br>'; } 
            print '<p align="center"><a href="javascript:history.back()">  <font class="menu1">Retour</font></a>';  exit;
            }
            else
            {
    $sonmail = $_POST['sonmail'];
    $copie = $_POST["copie"];
    $point = strpos($sonmail,".");
    $arobas = strpos($sonmail,"@");
    if($point == '')
    {
    echo '<center><br>  <font class="Style8a">Votre adresse email est invalide</font><br><p align="center"><a href="javascript:history.back()">  <font class="menu1">Retour</font></a></p><br>'; exit;
    }
    elseif($arobas == '')
    {
    echo '<center><br>  <font class="Style8a">Votre adresse email est invalide</font><br><p align="center"><a href="javascript:history.back()">  <font class="menu1">Retour</font></a></p><br>'; 
    }
    else
    {
    if($copie == "oui" ) {
           Mail("$sonmail","$sujet","$m1","from: $from"); 
           Mail("$votremail","$sujet","$m2","from: $votremail");
    echo "<center>  <font class='Style8a'>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");
    }
     
    }
    }
    ?>
    </font>
     
     
     
     
    </p> 
     
              </td> 
               <td background="images/vertical_34.gif" width="25" height="176"></td> 
             </tr> 
             <tr> 
               <td><img src="images/cadreint_29.gif" width="23" height="15"></td> 
               <td background="images/horizon_35.gif" width="4000" height="15"></td> 
               <td><img src="images/cadreint_31.gif" width="25" height="15"></td> 
             </tr> 
             <tr> 
     
               <td colspan="3" height="10"></td> 
               <td colspan="3" height="10"></td> 
             </tr> 
           </table>
     
    </center>
     
     
     
     
     
     
     
     
     
    </body>
    </html>

  10. #10
    Membre Expert
    Avatar de Nesmontou
    Homme Profil pro
    Architecte logiciel
    Inscrit en
    Septembre 2004
    Messages
    1 612
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Architecte logiciel
    Secteur : Finance

    Informations forums :
    Inscription : Septembre 2004
    Messages : 1 612
    Par défaut
    Bon, je n'ai toujours pas lu la totalité, mais dès le début, c'est l'anarchie

    Au début tu mets :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    </td>
       </tr>
       <tr>
          <td height="30" colspan="3">   </td>
       </tr>
    Tu fermes une balises <td> non ouverte, et il n'y a pas de balise <table> ; enfin bref, au niveau du HTML, c'est pas bon du tout

    Corrige déjà ça, on verra la suite plus tard ;-)

  11. #11
    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
    g modifier sa mé rien...
    mais en fet, ce que je ne compren pas, c'est que sur les autres pages c'est le même code html( "aussi pourrix") et sa marche

  12. #12
    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 cherche mais je ne trouve rien.Alors que mes autres pages sont identiques , celles là foire...Pourquoi?

Discussions similaires

  1. [semi-résolu] Problème étrange - HTTP Session avec Internet Explorer
    Par Delphine.H dans le forum Développement Web en Java
    Réponses: 2
    Dernier message: 10/05/2011, 18h18
  2. Réponses: 8
    Dernier message: 23/01/2007, 21h02
  3. 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
  4. Merci de penser au tag [Résolu] SVP
    Par grafikm_fr dans le forum Langages de programmation
    Réponses: 0
    Dernier message: 02/05/2004, 13h13
  5. DBBatch, données semi-structurées et UpdateMode
    Par Sylvain James dans le forum XMLRAD
    Réponses: 2
    Dernier message: 10/11/2003, 15h54

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