Parse error: syntax error, unexpected ':',

wassim24 Messages postés 128 Statut Membre -  
donuts08 Messages postés 523 Statut Membre -
Bonjour,
Je viens de creer un generateur de commande pour un forum, et quand je clique su generer j'ai cette erreur qui s'affiche "Parse error: syntax error, unexpected ':', expecting ',' or ';' in /home/web/clients/wassim24.hostarea.org/www/gen/index.php on line 41"

Voici le lien du site
http://wassim24.hostarea.org/gen

En esperant que l'un d'entre vous puisse m'aider ^^

--
~~~~~~~~~~~~~~~~~~~~~~~~~
Il y'a ceux qui seignent qui ne survivent 
Et les bons graphistes aussi
Comme dirais ce cher Stitry
~~~~~~~~~~~~~~~~~~~~~~~~~
Configuration: Windows XP
Firefox 3.0.2

10 réponses

  1. donuts08 Messages postés 523 Statut Membre 39
     
    bonjour,

    il faudrait peut-être que tu nous montre le script PHP pour qu'on te réponde ^^
    0
  2. wassim24 Messages postés 128 Statut Membre 2
     
    Bonsoi,
    Merci de ta reponse voila le script en question ^^

    <div id="contenu">
    <br /><br />

    <h2><u>..:: ZIZPREZ" Section Membres ::..</u></h2>
    <p class="cont">
    <?php
    if(isset($_POST['pseudo'])){
    $buffer = '';
    $first = 1;

    $pseudo = htmlentities($_POST['pseudo']);
    $naturecommande = htmlentities($_POST['Nature Comande']);
    $TP = htmlentities($_POST['Taille en Pixel']);
    $CD = htmlentities($_POST['Couleur(s) Dominante(s)']);
    $TI = htmlentities($_POST['Texte(s) à insérer']);
    $PT = htmlentities($_POST['Police Texte']);
    $anim = htmlentities($_POST['Une Animation ?']);
    $ta = htmlentities($_POST['Quel Type d\'animation']);
    $ImgInsr = htmlentities($_POST['Les Images a Insèrer']);
    $addinfo = htmlentities($_POST['Autre(s) information(s)']);
    $comms = htmlentities($_POST['Commentaires']);

    echo '<fieldset class="fieldset">';
    echo '<legend><b>Generateur de Commande</b></legend>';

    echo '<center><font size="6"><font color="red">.: Commande de ' . $pseudo. ' :.</font></font></center><br /><br />';

    echo '<center><b><u>Infos Commande :</u></b></center><br /><br />';

    echo '<div style="padding-left:25px; width:97%"><b>Nature de la commande :</b> ' . $naturecommande . ' <br />';
    echo '<b>Taille en Pixel :</b> ' . $TP . '<br />';
    echo '<b>Couleur(s) Dominante(s) :</b> ' . $CD . '<br />';
    echo '<b>Texte(s) à insérer :</b> ' . $TI . ' <br />';
    echo '<b>Police Texte :</b> ' . $PT . ' </div><br /><br />';
    echo '<b>Couleur Texte :</b> ' . $CT . ' </div><br /><br />';

    echo '<center><b><u>Infos Supplementaires :</u></b></center><br /><br />';

    echo '<div style="padding-left:25px; width:97%"><b>Une Animation ? :</b> ' . $anim . ' <br />';
    echo '<b>Quel Type danimation' :</b> ' . $ta . ' </div><br /><br />';

    echo '<center><b><u>Images et commentaires :</u></b></center><br /><br />';

    echo '<div style="padding-left:25px; width:97%"><b>Les Images a Insèrer :</b> ' . $ImgInser . ' <br />';
    echo '<b>Autre(s) information(s) :</b> ' . $addinfo . ' <br />';
    echo '<b>Commentaires :</b> ' . $comms . ' </div><br /><br />';

    echo '<center><b><a href="https://graphic-zone.forumpro.fr/"><font color="blue"><b>.: || Graphic-Zone Command Generator" || :.</b></font></a></b></center>';

    echo '</center></fieldset>';
    echo '<br /><br />';

    // BBCode pour PhpBB & PunBB

    if ($first==1)
    {
    $first = 0;
    }
    else
    {
    $buffer .= '[center]---------------------------------------------/center'."\n\n";
    };

    $buffer .= '[center][SIZE=150][color=red].: Commande de' . $pseudo . ' :./SIZE/color/center'."\n\n";

    $buffer .= '[center][b][u]Infos Commande/u/b/center'."\n\n";

    $buffer .= '[b]Nature de la Commande :/b ' . $naturecommande . "\n";
    $buffer .= '[b]Taille en Pixel :/b ' . $TP . 'PX '. "\n";
    $buffer .= '[b]Couleur(s) Dominante(s) :/b ' . $CD . "\n";
    $buffer .= '[b]Texte(s) à insérer :/b ' . $TI . "\n";
    $buffer .= '[b]Police Texte :/b ' . $PT . "\n\n";
    $buffer .= '[b]Couleur Texte :/b ' . $CT . "\n\n";

    $buffer .= '[center][b][U]Infos Supplementaires/U/b/center'."\n\n";

    $buffer .= '[b]Une Animation ?' :/b ' . $anim . "\n";
    $buffer .= '[b]Qeul Type d\'animation :/b '. $ta . "\n";

    $buffer .= '[center][b][U]Images et commentaires/U/b/center'."\n\n";

    $buffer .= '[b]Les Images a Insèrer :/b ' . $ImgInser . "\n";
    $buffer .= '[b]Autre(s) information(s) :/b ' . $addinfo . "\n";
    $buffer .= '[b]Commentaires :/b ' . $comms . '' . "\n\n";

    echo '<h2><u>BBCode à coller dans votre message</u></h2></u>';

    echo '<center>';
    echo '<fieldset class="fieldset">';
    echo '<legend><b>PhpBB & PunBB Section Generation de Commandes</b></legend>';
    echo '<textarea name="textpost" cols="87" rows="10" onClick="javascript:this.posteur.textpost.focus(); this.posteur.textpost.select();">';
    echo $buffer;
    echo '[center][url=https://graphic-zone.forumpro.fr/][b] .: || Générée avec Graphic-Zone generator || :./b/url/center'. "\n\n";
    echo '</textarea>';
    echo '</fieldset>';
    echo '</center>';
    }else{
    echo '<meta http-equiv="Refresh"
    content="1;URL=http://zizprez.free.fr/index.php?page=membres">';

    }
    ?>
    </p>

    <br />
    </div>
    0
  3. donuts08 Messages postés 523 Statut Membre 39
     
    c'est laquelle la ligne 41?

    EDIT:

    c'est celle-ci je pense:
    echo '<b>Quel Type danimation' :</b> ' . $ta . ' </div><br /><br />';

    tu as oublié un \ comme ça:

    echo '<b>Quel Type danimation\' :</b> ' . $ta . ' </div><br /><br />';
    0
  4. wassim24 Messages postés 128 Statut Membre 2
     
    La voila ^^

    echo '<b>Quel Type danimation' :</b> ' . $ta . ' </div><br /><br />';
    0
  5. Vous n’avez pas trouvé la réponse que vous recherchez ?

    Posez votre question
  6. donuts08 Messages postés 523 Statut Membre 39
     
    lis mon post du dessus, j'avais deviné ^^ mais à mon avis tu as mis cette apostrophe par erreur...
    0
  7. wassim24 Messages postés 128 Statut Membre 2
     
    Merci beaucoup la 41 est corrigée maintenant voila ce qu'il dit ^^

    Parse error: syntax error, unexpected ':' in /home/web/clients/wassim24.hostarea.org/www/gen/index.php on line 79

    $buffer .= '[b]Une Animation ?' :[/b] ' . $anim . "\n";

    Merci encore
    0
  8. donuts08 Messages postés 523 Statut Membre 39
     
    même erreur ^^

    $buffer .= '[b]Une Animation ?\' :/b ' . $anim . "\n";
    0
  9. wassim24 Messages postés 128 Statut Membre 2
     
    Merci beaucoup mon ami, je ties au courant des erreurs car j'ai pas le temp de modifieer ^^
    0
  10. wassim24 Messages postés 128 Statut Membre 2
     
    Mercciiii beaucoup ça marche j'ai vite essayé, ne reste plus qu'a mettre les bons name et les tags dans la HTML ^^ merci encore
    0
  11. donuts08 Messages postés 523 Statut Membre 39
     
    de rien
    0