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

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

Langage PHP Discussion :

Comment declarer un variable de message ?


Sujet :

Langage PHP

  1. #1
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    62
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 62
    Points : 30
    Points
    30
    Par défaut Comment declarer un variable de message ?
    je souhaite faire afficher un message dans un endroit précis d'une fiche
    comment dois je déclarer ce champs qui contiendra mon message ?
    car l'instruction echo fait afficher mon message tout au début de ma fiche et fait decaler tout les reste vers le bas. merci de votre aide.

  2. #2
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    62
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 62
    Points : 30
    Points
    30
    Par défaut
    Ca y est, j'ai déclaré une variable pour mon message dans une fiche, mais comment puis je l'activer que lorsqu'il y a erreur ?

  3. #3
    Expert confirmé
    Avatar de siddh
    Inscrit en
    Novembre 2005
    Messages
    3 868
    Détails du profil
    Informations personnelles :
    Âge : 48

    Informations forums :
    Inscription : Novembre 2005
    Messages : 3 868
    Points : 5 011
    Points
    5 011
    Par défaut
    c est quoi une fiche ?

    un peu de code ?

  4. #4
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    62
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 62
    Points : 30
    Points
    30
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
     
    <?php
    //init des variables 
    if (!isset($HTTP_POST_VARS['BSubmit'])) $HTTP_POST_VARS['BSubmit']="";
    if (!isset($HTTP_POST_VARS['CNom'])) $WNom=""; else $WNom=$HTTP_POST_VARS['CNom'];
    if (!isset($HTTP_POST_VARS['CPrenom'])) $WPrenom=""; else $WPrenom=$HTTP_POST_VARS['CPrenom'];
    if (!isset($erreurlog)) $erreurlog=0;
     
     
     
    if ($HTTP_POST_VARS['BSubmit']=="Envoyer") {
     
    	if ($WNom=="Nom")  {
    	    $erreurlog=1;
    	   } 
     
    	if ($WPrenom=="Prénom")  {
    	    $erreurlog=1;
    	   } 
     
    	if ($erreurlog==1)  {
    		$erreurlog=0;
    		$HTTP_POST_VARS['CMessage']="Les champs sont obligatoires";
    	   } 
    	else  {
     
    	$whbh_mail_to="gcharniere@yahoo.com";
    	$whbh_mail_text = $_POST['RBMrMmeMelle'] . " " . $_POST['CNom'] . " " . $_POST['CPrenom'] . "\n" .
    	$_POST['CAddr1'] . "\n" .
    	$_POST['CAddr2'] . "\n" .
    	$_POST['CCode'] . " " . $_POST['CVille'] . "\n"  .
    	$_POST['CComment'] . "\n" .
    	"\n" .
    	$_POST['CEmail'] . "\n" ;
    	$whbh_mail_reply= "xxxxx@reply.com";
    	$whbh_mail_from="whuibonhoa@yahoo.com";
    	$whbh_mail_sujet= "Demande d'inscription"; 
    	$whbh_date = date("D, j M Y H:i:s -0600"); 	// avec offset horaire
     
    	$entetemail  = "From: $whbh_mail_from \n"; 	// Adresse expéditeur
    	$entetemail .= "Cc: \n";  			// Carbon Copy
    	$entetemail .= "Bcc: $whbh_mail_from \n"; 			// Copies cachées
    	$entetemail .= "Reply-To: $whbh_mail_from \n";  // Adresse de retour
    	$entetemail .= "X-Mailer: PHP/" . phpversion() . "\n" ;
    	$entetemail .= "Date: $whbh_date"; 
    	mail($whbh_mail_to, $whbh_mail_sujet, $whbh_mail_text, $entetemail);
    	header("Location: mainframe_accueil.php");
    	exit();
    	}
    }
    ?>
     
     
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     
    <link href="blstyle.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    body {
    	background-image: url(Images/Nature%20Bkgrd.jpg);
    }
    -->
    </style></head>
    <body class="sub">
    <form name="form1" method="post" action="">
      <div align="left"></div>
      <table width="85%" border="0" cellpadding="8">
          <tr> 
            <td colspan="4" class="HeaderColor"> <h4 align="center"><span style="mso-bidi-font-size: 12.0pt"><span class="MF_Style_2"><font color="#007FFF" face="Comic Sans MS" size="3">Formulaire d'inscription</font></span></span></h4></td>
          </tr>
     
     
          <tr style="vertical-align: top">
            <td height="38" colspan="4" nowrap class="Texte" style="text-align: right"><div align="left">
            <pre class="Texte">Civilit&eacute;  :  Monsieur  <input name="RBMrMmeMelle" type="radio" id="monsieur"  value="Monsieur" checked>         Madame  <input name="RBMrMmeMelle" type="radio" id="madame"  value="Madame">     Mademoiselle  <input name="RBMrMmeMelle" type="radio" id="mademoiselle"  value="Mademoiselle"> 
    		</pre>
            </div></td>
          </tr>
          <tr style="vertical-align: top"> 
            <td width="23%" nowrap class="LabelColor" style="text-align: right"><label for="username" class="Texte">
              Nom et Pr&eacute;nom </label></td>
            <td class="TitleColor"> <input name="CNom" type="text" class="Texte_Gras" id="IdNom" value="Nom" size="30"></td>
            <td colspan="2" class="TitleColor"> <input name="CPrenom" type="text" class="Texte_Gras" id="IdPrenom" value="Pr&eacute;nom" size="30"></td>
          </tr>
     
          <tr style="vertical-align: top"> 
            <td style="text-align: right" class="LabelColor"><label for="addr1" class="Texte">
              Adresse 1 </label></td>
            <td colspan="3" class="TitleColor">  <input name="CAddr1" type="text" class="Texte_Gras" id="IdAddr1" value="Adresse 1&egrave;re partie" size="70"></td>
          </tr>
     
          <tr style="vertical-align: top"> 
            <td style="text-align: right" class="LabelColor"><label for="addr2" class="Texte">
              Adresse 2 </label></td>
            <td colspan="3" class="TitleColor">  <input name="CAddr2" type="text" class="Texte_Gras" id="IdAddr2" value="Adresse 2&egrave;me partie" size="70">          </td>
          </tr>
     
          <tr style="vertical-align: top"> 
            <td height="33" class="Texte" style="text-align: right">
              Code Postal et Ville </td>
            <td width="31%" class="TitleColor">  <label for="codepostal"></label>   <input name="CCode"  type="text" class="Texte_Gras" id="IdCode" value="Code" size="6" maxlength="5">    </td>
            <td width="46%" colspan="2" class="TitleColor">  <label for="ville"></label>    <input name="CVille" type="text" class="Texte_Gras" id="IdVille" value="Ville" size="30">       </td>
          </tr>
     
          <tr style="vertical-align: top"> 
            <td height="33" class="LabelColor" style="text-align: right"><label for="email" class="Texte">
            Email</label></td>
            <td colspan="3" class="TitleColor">  <input name="CEmail" type="text" class="Texte_Gras" id="IdEmail" value="Email" size="50">          </td>
          </tr>
     
          <tr style="vertical-align: top">
            <td height="33" class="LabelColor" style="text-align: right"><label for="comment" class="Texte"> Observations </label></td>
            <td colspan="3" class="TitleColor">
              <textarea name="CComment" cols="70" rows="4" wrap="VIRTUAL" class="Texte_Gras" id="IdEmail">Vos Observations</textarea>
            </td>
          </tr>
     
          <tr style="vertical-align: top"> 
            <td colspan="4">  <pre class="Texte">Versement d'acompte :    Oui <input name="RBOuiNon" type="radio" id="yes"  value="Oui" checked>        N<label for="no1">on</label><input type="radio" id="no" name="RBOuiNon" value="Non">    </pre>          </td>
          </tr>
     
          <tr style="vertical-align: top" class="FooterColor">
          <td height="36" colspan="4"><div align="center">
            <input name="BSubmit" type="submit" class="Texte_Gras" id="BSubmit" value="Envoyer">
          </div></td>
        </tr>
          <tr style="vertical-align: top" class="FooterColor">
            <td height="36" colspan="4"><div align="center"><span class="TitleColor">
                <input name="CMessage" type="text" class="Texte_Gras" id="CEmail" size="70">
            </span></div></td>
          </tr>
     
    </table>
    </form>
    </body>
    </html>

  5. #5
    Expert confirmé
    Avatar de siddh
    Inscrit en
    Novembre 2005
    Messages
    3 868
    Détails du profil
    Informations personnelles :
    Âge : 48

    Informations forums :
    Inscription : Novembre 2005
    Messages : 3 868
    Points : 5 011
    Points
    5 011
    Par défaut
    ok et ton message tu veux l'écrire ou ? et mettre quoi dedans ?

  6. #6
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    62
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 62
    Points : 30
    Points
    30
    Par défaut
    je voudrais mettre "Les Champs Nom et Prenom sont obligatoire" dans la variable CMessage

    Merci

  7. #7
    Expert confirmé
    Avatar de siddh
    Inscrit en
    Novembre 2005
    Messages
    3 868
    Détails du profil
    Informations personnelles :
    Âge : 48

    Informations forums :
    Inscription : Novembre 2005
    Messages : 3 868
    Points : 5 011
    Points
    5 011
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
     
    $erreur = "";
    if ($HTTP_POST_VARS['BSubmit']=="Envoyer") {
     
       if ($WNom=="Nom")  {
           $erreurlog=1;
          }
     
       if ($WPrenom=="Prénom")  {
           $erreurlog=1;
          }
     
       if ($erreurlog==1)  {
          $erreurlog=0;
          $erreur = "Les champs nom et prénom sont obligatoires";
          }
       else  {
     
       $whbh_mail_to="gcharniere@yahoo.com";
       $whbh_mail_text = $_POST['RBMrMmeMelle'] . " " . $_POST['CNom'] . " " . $_POST['CPrenom'] . "\n" .
       $_POST['CAddr1'] . "\n" .
       $_POST['CAddr2'] . "\n" .
       $_POST['CCode'] . " " . $_POST['CVille'] . "\n"  .
       $_POST['CComment'] . "\n" .
       "\n" .
       $_POST['CEmail'] . "\n" ;
       $whbh_mail_reply= "xxxxx@reply.com";
       $whbh_mail_from="whuibonhoa@yahoo.com";
       $whbh_mail_sujet= "Demande d'inscription";
       $whbh_date = date("D, j M Y H:i:s -0600");    // avec offset horaire
     
       $entetemail  = "From: $whbh_mail_from \n";    // Adresse expéditeur
       $entetemail .= "Cc: \n";           // Carbon Copy
       $entetemail .= "Bcc: $whbh_mail_from \n";          // Copies cachées
       $entetemail .= "Reply-To: $whbh_mail_from \n";  // Adresse de retour
       $entetemail .= "X-Mailer: PHP/" . phpversion() . "\n" ;
       $entetemail .= "Date: $whbh_date";
       mail($whbh_mail_to, $whbh_mail_sujet, $whbh_mail_text, $entetemail);
       header("Location: mainframe_accueil.php");
       exit();
       }
    }
    et en bas :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    <td height="36" colspan="4"><div align="center"><span class="TitleColor Texte_Gras">
                <?
                      echo $erreur;
                ?>
            </span></div></td>

  8. #8
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    62
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 62
    Points : 30
    Points
    30
    Par défaut
    Dans ce cas là, le champs CMessage est inutile ? et le message s'affiche toujours au dessus de ma fiche

  9. #9
    Expert confirmé
    Avatar de siddh
    Inscrit en
    Novembre 2005
    Messages
    3 868
    Détails du profil
    Informations personnelles :
    Âge : 48

    Informations forums :
    Inscription : Novembre 2005
    Messages : 3 868
    Points : 5 011
    Points
    5 011
    Par défaut
    c est bien ici que tu veux l'afficher non ?
    et je voit pas l'interet de mettre un message d'erreur dans un champ de formulaire, tu veux qu'on puisse modifier le message d'erreur ?

  10. #10
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    62
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 62
    Points : 30
    Points
    30
    Par défaut
    Je voulais juste preciser un endroit pour afficher les messages d'erreur
    et que le champs CMessage est un champ non modifiable quoi

  11. #11
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    62
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 62
    Points : 30
    Points
    30
    Par défaut
    Ceci afin d' éviter que le message d'erreur ne s'affiche au début de mon formulaire

  12. #12
    Expert confirmé
    Avatar de siddh
    Inscrit en
    Novembre 2005
    Messages
    3 868
    Détails du profil
    Informations personnelles :
    Âge : 48

    Informations forums :
    Inscription : Novembre 2005
    Messages : 3 868
    Points : 5 011
    Points
    5 011
    Par défaut
    autant ecrire dans le span directement

    mais la normalement il est en bas du formulaire, ca doit venir d'un probleme de style dans ce cas si il est en haut, ton bouton, il est en bas ?

  13. #13
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    62
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 62
    Points : 30
    Points
    30
    Par défaut
    Pardon, c'est moi qui ai fait une erreur
    Mais, apres correction, le message d'erreur est affiché dès l'entrée dans le formulaire

  14. #14
    Expert confirmé
    Avatar de siddh
    Inscrit en
    Novembre 2005
    Messages
    3 868
    Détails du profil
    Informations personnelles :
    Âge : 48

    Informations forums :
    Inscription : Novembre 2005
    Messages : 3 868
    Points : 5 011
    Points
    5 011
    Par défaut
    tu as bien mis en bas du formulaire ?

    remontre juste le code du form

  15. #15
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    62
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 62
    Points : 30
    Points
    30
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
     
     
    <?php
    //init des variables 
    if (!isset($HTTP_POST_VARS['BSubmit'])) $HTTP_POST_VARS['BSubmit']="";
    if (!isset($HTTP_POST_VARS['CNom'])) $WNom=""; else $WNom=$HTTP_POST_VARS['CNom'];
    if (!isset($HTTP_POST_VARS['CPrenom'])) $WPrenom=""; else $WPrenom=$HTTP_POST_VARS['CPrenom'];
    if (!isset($erreurlog)) $erreurlog=0;
     
    $erreurlog=0;
    $WMessage = "";
    if ($HTTP_POST_VARS['BSubmit']=="Envoyer") {
     
    	if ($WNom=="Nom")  {
    	    $erreurlog=1;
    	   } 
     
    	if ($WPrenom=="Prénom")  {
    	    $erreurlog=1;
    	   } 
     
    	if ($erreurlog==1)  {
    		$WMessage = "Les champs nom et prénom sont obligatoires";
    	   } 
    	else  {
     
    	$whbh_mail_to="gcharniere@yahoo.com";
    	$whbh_mail_text = $_POST['RBMrMmeMelle'] . " " . $_POST['CNom'] . " " . $_POST['CPrenom'] . "\n" .
    	$_POST['CAddr1'] . "\n" .
    	$_POST['CAddr2'] . "\n" .
    	$_POST['CCode'] . " " . $_POST['CVille'] . "\n"  .
    	$_POST['CComment'] . "\n" .
    	"\n" .
    	$_POST['CEmail'] . "\n" ;
    	$whbh_mail_reply= "xxxxx@reply.com";
    	$whbh_mail_from="whuibonhoa@yahoo.com";
    	$whbh_mail_sujet= "Demande d'inscription"; 
    	$whbh_date = date("D, j M Y H:i:s -0600"); 	// avec offset horaire
     
    	$entetemail  = "From: $whbh_mail_from \n"; 	// Adresse expéditeur
    	$entetemail .= "Cc: \n";  			// Carbon Copy
    	$entetemail .= "Bcc: $whbh_mail_from \n"; 			// Copies cachées
    	$entetemail .= "Reply-To: $whbh_mail_from \n";  // Adresse de retour
    	$entetemail .= "X-Mailer: PHP/" . phpversion() . "\n" ;
    	$entetemail .= "Date: $whbh_date"; 
    	mail($whbh_mail_to, $whbh_mail_sujet, $whbh_mail_text, $entetemail);
    	header("Location: mainframe_accueil.php");
    	exit();
    	}
    }
    ?>
     
     
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     
    <link href="blstyle.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    body {
    	background-image: url(Images/Nature%20Bkgrd.jpg);
    }
    -->
    </style></head>
    <body class="sub">
    <form name="form1" method="post" action="">
      <div align="left"></div>
      <table width="85%" border="0" cellpadding="8">
          <tr> 
            <td colspan="4" class="HeaderColor"> <h4 align="center"><span style="mso-bidi-font-size: 12.0pt"><span class="MF_Style_2"><font color="#007FFF" face="Comic Sans MS" size="3">Formulaire d'inscription</font></span></span></h4></td>
          </tr>
     
     
          <tr style="vertical-align: top">
            <td height="38" colspan="4" nowrap class="Texte" style="text-align: right"><div align="left">
            <pre class="Texte">Civilit&eacute;  :  Monsieur  <input name="RBMrMmeMelle" type="radio" id="monsieur"  value="Monsieur" checked>         Madame  <input name="RBMrMmeMelle" type="radio" id="madame"  value="Madame">     Mademoiselle  <input name="RBMrMmeMelle" type="radio" id="mademoiselle"  value="Mademoiselle"> 
    		</pre>
            </div></td>
          </tr>
          <tr style="vertical-align: top"> 
            <td width="23%" nowrap class="LabelColor" style="text-align: right"><label for="username" class="Texte">
              Nom et Pr&eacute;nom </label></td>
            <td class="TitleColor"> <input name="CNom" type="text" class="Texte_Gras" id="IdNom" value="Nom" size="30"></td>
            <td colspan="2" class="TitleColor"> <input name="CPrenom" type="text" class="Texte_Gras" id="IdPrenom" value="Pr&eacute;nom" size="30"></td>
          </tr>
     
          <tr style="vertical-align: top"> 
            <td style="text-align: right" class="LabelColor"><label for="addr1" class="Texte">
              Adresse 1 </label></td>
            <td colspan="3" class="TitleColor">  <input name="CAddr1" type="text" class="Texte_Gras" id="IdAddr1" value="Adresse 1&egrave;re partie" size="70"></td>
          </tr>
     
          <tr style="vertical-align: top"> 
            <td style="text-align: right" class="LabelColor"><label for="addr2" class="Texte">
              Adresse 2 </label></td>
            <td colspan="3" class="TitleColor">  <input name="CAddr2" type="text" class="Texte_Gras" id="IdAddr2" value="Adresse 2&egrave;me partie" size="70">          </td>
          </tr>
     
          <tr style="vertical-align: top"> 
            <td height="33" class="Texte" style="text-align: right">
              Code Postal et Ville </td>
            <td width="31%" class="TitleColor">  <label for="codepostal"></label>   <input name="CCode"  type="text" class="Texte_Gras" id="IdCode" value="Code" size="6" maxlength="5">    </td>
            <td width="46%" colspan="2" class="TitleColor">  <label for="ville"></label>    <input name="CVille" type="text" class="Texte_Gras" id="IdVille" value="Ville" size="30">       </td>
          </tr>
     
          <tr style="vertical-align: top"> 
            <td height="33" class="LabelColor" style="text-align: right"><label for="email" class="Texte">
            Email</label></td>
            <td colspan="3" class="TitleColor">  <input name="CEmail" type="text" class="Texte_Gras" id="IdEmail" value="Email" size="50">          </td>
          </tr>
     
          <tr style="vertical-align: top">
            <td height="33" class="LabelColor" style="text-align: right"><label for="comment" class="Texte"> Observations </label></td>
            <td colspan="3" class="TitleColor">
              <textarea name="CComment" cols="70" rows="4" wrap="VIRTUAL" class="Texte_Gras" id="IdComment">Vos Observations</textarea>
            </td>
          </tr>
     
          <tr style="vertical-align: top"> 
            <td colspan="4">  <pre class="Texte">Versement d'acompte :    Oui <input name="RBOuiNon" type="radio" id="yes"  value="Oui" checked>        N<label for="no1">on</label><input type="radio" id="no" name="RBOuiNon" value="Non">    </pre>          </td>
          </tr>
     
          <tr style="vertical-align: top" class="FooterColor">
          <td height="36" colspan="4"><div align="center">
            <input name="BSubmit" type="submit" class="Texte_Gras" id="BSubmit" value="Envoyer">
          </div></td>
        </tr>
     
        <td height="36" colspan="4"><div align="center"><span class="TitleColor Texte_Gras"> 
              <? 
               echo $WMessage; 
              ?> 
         </span></div></td> 
     
     
    </table>
    </form>
    </body>
    </html>

  16. #16
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    62
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 62
    Points : 30
    Points
    30
    Par défaut
    Si vous pouvez apporter des ameliorations syntaxiques, vous serez le bienvenu

    merci beaucoup en tout cas !

  17. #17
    Expert confirmé
    Avatar de siddh
    Inscrit en
    Novembre 2005
    Messages
    3 868
    Détails du profil
    Informations personnelles :
    Âge : 48

    Informations forums :
    Inscription : Novembre 2005
    Messages : 3 868
    Points : 5 011
    Points
    5 011
    Par défaut
    il manque les ouvertures et fermeture de <tr> autour de :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    <td height="36" colspan="4"><div align="center"><span class="TitleColor Texte_Gras">
              <?
               echo $WMessage;
              ?>
         </span></div></td>
    c est pour ça qu'il le met en dehors de la table

  18. #18
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    62
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 62
    Points : 30
    Points
    30
    Par défaut
    Pourqyoi à l'affichage de mon formulaire, le message "... champs obligatoire" est affiché alors que
    la variable $WMessage a été bien initialisée au début du formulaire

  19. #19
    Expert confirmé
    Avatar de siddh
    Inscrit en
    Novembre 2005
    Messages
    3 868
    Détails du profil
    Informations personnelles :
    Âge : 48

    Informations forums :
    Inscription : Novembre 2005
    Messages : 3 868
    Points : 5 011
    Points
    5 011
    Par défaut
    hum, t as essayé en fermant ta fenetre de navigateur et en en relançant une autre ?

  20. #20
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    62
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 62
    Points : 30
    Points
    30
    Par défaut
    Vous avez raison, j'ai fermé le navigateur et le réouvre, et ça marche
    Voyez vous d'autres ameliorations dans mon formulaire ?

    merci

+ Répondre à la discussion
Cette discussion est résolue.
Page 1 sur 2 12 DernièreDernière

Discussions similaires

  1. Réponses: 10
    Dernier message: 25/10/2011, 10h28
  2. comment declarer une variable de type date ?
    Par MAJIK_ENIS dans le forum JDBC
    Réponses: 1
    Dernier message: 26/05/2006, 00h02
  3. Comment déclarer une variable globale
    Par davkick dans le forum C
    Réponses: 13
    Dernier message: 20/05/2005, 18h50
  4. comment recuperer une variable dans flash
    Par krépuscul dans le forum Flash
    Réponses: 30
    Dernier message: 16/10/2003, 09h40
  5. Comment renseigner la variable autocommit dans my.ini
    Par Charroin dans le forum SQL Procédural
    Réponses: 5
    Dernier message: 18/09/2003, 15h23

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