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

EDI, CMS, Outils, Scripts et API PHP Discussion :

sondage php, probleme actualisation


Sujet :

EDI, CMS, Outils, Scripts et API PHP

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    Par défaut
    salut à tous,

    J'aimerais obtenir votre aide, sur un problème donc je ne comprend pas.
    lorsque je propose un sondage avant de cliquer sur voté, si j'actualise la page ca considere comme voté. comment évité ca?

    voici le code de la page:
    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
     
    //On prend l'id le plus grand
    $nombreEntrees = mysql_query("SELECT MAX(id) AS nbre_entrees FROM sondage") or die(mysql_error());
    $numeroDuSondage = mysql_fetch_assoc($nombreEntrees);
    //On sélectionne la question et les choix
    $req="SELECT question, proposition1, proposition2, proposition3, proposition4, proposition5 FROM sondage WHERE id = '" . $numeroDuSondage['nbre_entrees'] . "' ";
    $MySQL_infos = mysql_query($req) or die(mysql_error());
    $infos = mysql_fetch_array($MySQL_infos);
    //On sélectionne le nombre de votes
    $MySQL_votes = mysql_query("SELECT resultats1, resultats2, resultats3,resultats4,resultats5 FROM sondage WHERE id = '" . $numeroDuSondage['nbre_entrees'] . "'") or die(mysql_error());
    $votes = mysql_fetch_assoc($MySQL_votes);
    //script pour ajouter les votes
     
    //script pour ajouter les votes et ip
    $ip = $_SERVER['REMOTE_ADDR'];
    $prop = "prop";
    $resultat = "resultats";
    $fin = false;
    if(isset($_POST['sondage']))
    {
    	for($i = 1; $i <= 5 && !$fin; $i++)
    	{
    		if($_POST['sondage'] == $prop . $i)
    		{
    			$votes[$resultat . $i] ++;
    			mysql_query("UPDATE sondage SET  " . $resultat . $i ." = '" . $votes[$resultat . $i] . "' WHERE id = '" . $numeroDuSondage['nbre_entrees'] . "'") or die(mysql_error());
    			$fin = true;
    		}
    	}
    }
    // On recupere les nombre total de votes resultat
    $query = "SELECT  resultats1,resultats2,resultats3,resultats4, resultats5 FROM ".$table." WHERE id="."'" . $numeroDuSondage['nbre_entrees'] . "'";
    $row = mysql_query($query);
    $data = mysql_fetch_array($row);
    $resultat1 = $data["resultats1"];
    $resultat2 = $data["resultats2"];
    $resultat3 = $data["resultats3"];
    $resultat4 = $data["resultats4"];
    $resultat5 = $data["resultats5"];
     
    $total_votes =  $resultat1 + $resultat2 + $resultat3 + $resultat4 + $resultat5;
    if($total_votes != 0){
        $pourcentage_r1 = ($resultat1 / $total_votes) * 100;
        $pourcentage_r2 = ($resultat2 / $total_votes) * 100;
        $pourcentage_r3 = ($resultat3 / $total_votes) * 100;
        $pourcentage_r4 = ($resultat4 / $total_votes) * 100;
        $pourcentage_r5 = ($resultat5 / $total_votes) * 100;
    }
    else{
        $pourcentage_r1 = 0;
        $pourcentage_r2 = 0;
        $pourcentage_r3 = 0;
    	$pourcentage_r4 = 0;
    	$pourcentage_r5 = 0;
    }
    $long_max_bloc = 120;
    //recupere ip et on insere par rapport à l'id
    $query = "SELECT vote_ip FROM $table1 WHERE sondage_id="."'" . $numeroDuSondage['nbre_entrees'] . "'  " ;
    $result = mysql_query($query);
    $num = mysql_num_rows($result);
    if($num)
    {
    if ($infos['question'] != "")
    echo '<span style="color:#4C1B1B;font-size:20px;">'.$infos['question'].'</span>'.'<br/>'. "";
    if ($infos['proposition1'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop1' id='prop1' /> <label for='prop1'>" .'<img src="img/greenrond.gif">'.'<img src="img/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    	if ($infos['proposition2'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop2' id='prop2' /> <label for='prop2'>" .'<img src="img/blackrond.gif">'.'<img src="img/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
    if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop3' id='prop3' /> <label for='prop3'>" .'<img src="img/redrond.gif">'.'<img src="img/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
     
     
    	if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop4' id='prop4' /> <label for='prop4'>" .'<img src="img/bluerond.gif">'.'<img src="img/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
         if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop5' id='prop5' /> <label for='prop5'>" .'<img src="img/copperrond.gif">'.'<img src="img/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
    //	echo '<a href="archive.php" style="text-decoration:none;padding-left:10em;"><b><font color="#4C1B1B"> les résultats des anciens sondages </b></font></a>';
    exit;
    }
    $vote_ip = $_SERVER['REMOTE_ADDR'];
    $sondage_id = $numeroDuSondage['nbre_entrees'];
    $sql = "INSERT INTO $table1 (sondage_id, vote_ip) VALUES ($sondage_id, '$vote_ip')";
    mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
     
    ?>
    <!-- formulaire-->
    <form method="post">
    <?php
    echo '<span style="color:#4C1B1B;font-size:20px;">'.$infos['question'].'</span>'.'<br/>'. "";
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop1' id='prop1' /> <label for='prop1'>" .'<img src="img/greenrond.gif">'.'<img src="img/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop2' id='prop2' /> <label for='prop2'>" .'<img src="img/blackrond.gif">'.'<img src="img/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
           if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop3' id='prop3' /> <label for='prop3'>" .'<img src="img/redrond.gif">'.'<img src="img/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
           if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop4' id='prop4' /> <label for='prop4'>" .'<img src="img/bluerond.gif">'.'<img src="img/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
    	        if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop5' id='prop5' /> <label for='prop5'>" .'<img src="img/copperrond.gif">'.'<img src="img/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
     
     
    ?>
     
    <input type="submit" value="Voter !"/><br /><br/>
    </form>
    <?php
    //<a href="archive.php" style="text-decoration:none;color:#4C1B1B;padding-left:10em;"><b> les résultats des anciens sondages </b></a>
    ?>
    merci de votre aide

    pour plus de precision :

    je souhaite aprés rafraichissement, sans avoir cliqué sur le bouton valider que le compte ne soit pas pris en compte. mais comment gerer ca?

    merci de votre aide

    mon probléme:
    lorsque on raffraichit la page par la touche f5 par exemple, ceci valide le formulaire et empeche l'utilisateur de voté. je souhaite valider le formulaire qu'aprés validation du formulaire par le bouton valider mais comment faire?

    voici le code:
    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
     
    if($num)
    {
    if ($infos['question'] != "")
    echo '<span style="color:#4C1B1B;font-size:20px;">'.$infos['question'].'</span>'.'<br/>'. "";
    if ($infos['proposition1'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop1' id='prop1' /> <label for='prop1'>" .'<img src="img/greenrond.gif">'.'<img src="img/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    	if ($infos['proposition2'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop2' id='prop2' /> <label for='prop2'>" .'<img src="img/blackrond.gif">'.'<img src="img/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
    if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop3' id='prop3' /> <label for='prop3'>" .'<img src="img/redrond.gif">'.'<img src="img/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
     
     
    	if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop4' id='prop4' /> <label for='prop4'>" .'<img src="img/bluerond.gif">'.'<img src="img/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
         if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop5' id='prop5' /> <label for='prop5'>" .'<img src="img/copperrond.gif">'.'<img src="img/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
    	echo '<a href="archive.php" style="text-decoration:none;padding-left:10em;"><b><font color="#4C1B1B"> les résultats des anciens sondages </b></font></a>';
     
    exit;
     
    }
     
    $vote_ip = $_SERVER['REMOTE_ADDR'];
    $sondage_id = $numeroDuSondage['nbre_entrees'];
    $sql = "INSERT INTO $table1 (sondage_id, vote_ip) VALUES ($sondage_id, '$vote_ip')";
    mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
    merci de votre aide qui sera trés precieuse pour moi
      0  0

  2. #2
    Membre expert
    Avatar de ThomasR
    Homme Profil pro
    Directeur technique
    Inscrit en
    Décembre 2007
    Messages
    2 230
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Décembre 2007
    Messages : 2 230
    Points : 3 972
    Points
    3 972
    Par défaut
    Bonjour,

    Peut-être en faisant une redirection http afin de perdre le contenu des variables POST ?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    $vote_ip = $_SERVER['REMOTE_ADDR'];
    $sondage_id = $numeroDuSondage['nbre_entrees'];
    $sql = "INSERT INTO $table1 (sondage_id, vote_ip) VALUES ($sondage_id, '$vote_ip')";
    mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
    header('location:/');
    Peut-être ai-je mal compris, pourrais-tu développer cette phrase que je ne comprends pas :
    je souhaite aprés rafraichissement, sans avoir cliqué sur le bouton valider que le compte ne soit pas pris en compte. mais comment gerer ca?
      0  0

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    Par défaut
    merci de la réponse,
    mais malheureusement, le même résultat lorsque j'affiche le sondage et actualisation ça valide. je sais pas pk et comment faire?

    help me please!
    vincent
      0  0

  4. #4
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    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
     
    if($num==null)
    {
    if ($infos['question'] != "")
    echo '<span style="color:#4C1B1B;font-size:20px;">'.$infos['question'].'</span>'.'<br/>'. "";
    if ($infos['proposition1'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop1' id='prop1' /> <label for='prop1'>" .'<img src="img/greenrond.gif">'.'<img src="img/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    	if ($infos['proposition2'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop2' id='prop2' /> <label for='prop2'>" .'<img src="img/blackrond.gif">'.'<img src="img/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
    if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop3' id='prop3' /> <label for='prop3'>" .'<img src="img/redrond.gif">'.'<img src="img/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
     
     
    	if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop4' id='prop4' /> <label for='prop4'>" .'<img src="img/bluerond.gif">'.'<img src="img/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
         if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop5' id='prop5' /> <label for='prop5'>" .'<img src="img/copperrond.gif">'.'<img src="img/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
    	echo '<a href="archive.php" style="text-decoration:none;padding-left:10em;"><b><font color="#4C1B1B"> les résultats des anciens sondages </b></font></a>';
     
    exit;
     
    }
     
    $vote_ip = $_SERVER['REMOTE_ADDR'];
    $sondage_id = $numeroDuSondage['nbre_entrees'];
    $sql = "INSERT INTO $table1 (sondage_id, vote_ip) VALUES ($sondage_id, '$vote_ip')";
    mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
     
    else {} // je souhaiterais mettre la valeur a true afin d'enlever la possibilité de voter mais comment faire?
    ?>
    je souhaiterais mettre la condition apres avoir voter ne pls pouvoir voter!
    help me please
      0  0

  5. #5
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    Par défaut sondage php
    Bonjour à tous,

    J'aimerais obtenir votre aide afin d'arriver à mon but.... soit aprés un rafraichissement que le sondage ne se valide pas.
    En effet dans le script, quand un utilisateur vote il n'a plus la possibilité de le faire, le bouton valider disparaît mais quand on raffraîchit la page le sondage ce valide sans avoir voté mais comment évité ca?

    voici le script:
    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
     
    $query = "SELECT vote_ip FROM $table1 WHERE sondage_id="."'" . $numeroDuSondage['nbre_entrees'] . "'  " ;
    $result = mysql_query($query);
    $num = mysql_num_rows($result);
     
    if($num==null)
    {
    if ($infos['question'] != "")
    echo '<span style="color:#4C1B1B;font-size:20px;">'.$infos['question'].'</span>'.'<br/>'. "";
    if ($infos['proposition1'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop1' id='prop1' /> <label for='prop1'>" .'<img src="img/greenrond.gif">'.'<img src="img/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    	if ($infos['proposition2'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop2' id='prop2' /> <label for='prop2'>" .'<img src="img/blackrond.gif">'.'<img src="img/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
    if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop3' id='prop3' /> <label for='prop3'>" .'<img src="img/redrond.gif">'.'<img src="img/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
     
     
    	if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop4' id='prop4' /> <label for='prop4'>" .'<img src="img/bluerond.gif">'.'<img src="img/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
         if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop5' id='prop5' /> <label for='prop5'>" .'<img src="img/copperrond.gif">'.'<img src="img/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
    	echo '<a href="archive.php" style="text-decoration:none;padding-left:10em;"><b><font color="#4C1B1B"> les résultats des anciens sondages </b></font></a>';
     
    exit;
     
    }
     
    $vote_ip = $_SERVER['REMOTE_ADDR'];
    $sondage_id = $numeroDuSondage['nbre_entrees'];
    $sql = "INSERT INTO $table1 (sondage_id, vote_ip) VALUES ($sondage_id, '$vote_ip')";
    mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
     
    ?>
    <!-- formulaire-->
    <form method="post">
    <?php
    echo '<span style="color:#4C1B1B;font-size:20px;">'.$infos['question'].'</span>'.'<br/>'. "";
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop1' id='prop1' /> <label for='prop1'>" .'<img src="img/greenrond.gif">'.'<img src="img/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop2' id='prop2' /> <label for='prop2'>" .'<img src="img/blackrond.gif">'.'<img src="img/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
           if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop3' id='prop3' /> <label for='prop3'>" .'<img src="img/redrond.gif">'.'<img src="img/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
           if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop4' id='prop4' /> <label for='prop4'>" .'<img src="img/bluerond.gif">'.'<img src="img/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
    	        if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop5' id='prop5' /> <label for='prop5'>" .'<img src="img/copperrond.gif">'.'<img src="img/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
     
     
    ?>
    <input type="submit" value="Voter !"/><br /><br/>
    </form>
    <a href="archive.php" style="text-decoration:none;color:#4C1B1B;padding-left:10em;"><b> les résultats des anciens sondages </b></a>
    help me please!
      0  0

  6. #6
    Membre expérimenté
    Avatar de Rakken
    Homme Profil pro
    Inscrit en
    Août 2006
    Messages
    1 257
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 257
    Points : 1 341
    Points
    1 341
    Par défaut
    L'idée est toute bête, ne prendre en compte le sondage que si une variable 'hidden' a été posté.
    dans ton formulaire tu rajoutes un truc du genre :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <input type="hidden" name="action" value="vote" />
    Et au moment de prendre en compte le vote, tu fais un test du genre :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    if (isset($_POST['action'])) {
      // tu fais la validation de ton sondage. 
    }
    Si tu fais un simple 'refresh', le $_POST['action'] n'existera pas, donc le vote ne sera pas pris en compte.
    Rakken

    Oneira, un monde imaginaire d'Heroic Fantasy.

    Parce que la présomption d'innocence est un des fondements de notre pays et qu'elle doit le rester, dans tous les domaines : http://www.laquadrature.net/
      0  0

  7. #7
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    Par défaut
    merci merci merci
      0  0

  8. #8
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    Par défaut
    à chaque fois, j'appuie sur f5 ça comptabilise dans la base et j'aimerais compté qu'un vote par visiteur.
    comment arrivé à ce résultat?

    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
     
    $query = "SELECT vote_ip FROM $table1 WHERE sondage_id="."'" . $numeroDuSondage['nbre_entrees'] . "'  " ;
    $result = mysql_query($query);
    $num = mysql_num_rows($result);
     
    if (isset($_POST['sondage'])) {
     
    if ($infos['question'] != "")
    echo '<span style="color:#4C1B1B;font-size:20px;">'.$infos['question'].'</span>'.'<br/>'. "";
    if ($infos['proposition1'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop1' id='prop1' /> <label for='prop1'>" .'<img src="img/sondage/greenrond.gif">'.'<img src="img/sondage/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/sondage/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    	if ($infos['proposition2'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop2' id='prop2' /> <label for='prop2'>" .'<img src="img/sondage/blackrond.gif">'.'<img src="img/sondage/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/sondage/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
    if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop3' id='prop3' /> <label for='prop3'>" .'<img src="img/sondage/redrond.gif">'.'<img src="img/sondage/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/sondage/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
     
     
    	if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop4' id='prop4' /> <label for='prop4'>" .'<img src="img/sondage/bluerond.gif">'.'<img src="img/sondage/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/sondage/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
         if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop5' id='prop5' /> <label for='prop5'>" .'<img src="img/sondage/copperrond.gif">'.'<img src="img/sondage/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/sondage/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
    	echo '<a href="archive.php" style="text-decoration:none;padding-left:10em;"><b><font color="#4C1B1B"> les résultats des anciens sondages </b></font></a>';
     
    exit;
    }
     
     
    $vote_ip = $_SERVER['REMOTE_ADDR'];
    $sondage_id = $numeroDuSondage['nbre_entrees'];
    $sql = "INSERT INTO $table1 (sondage_id, vote_ip) VALUES ($sondage_id, '$vote_ip')";
    mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
    merci de votre aide bien précieuse, help me please
      0  0

  9. #9
    Membre expérimenté
    Avatar de Rakken
    Homme Profil pro
    Inscrit en
    Août 2006
    Messages
    1 257
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 257
    Points : 1 341
    Points
    1 341
    Par défaut
    Tu as mis ton insertion à l'extérieur du if, donc forcement, elle est executée tout le temps.
    Rakken

    Oneira, un monde imaginaire d'Heroic Fantasy.

    Parce que la présomption d'innocence est un des fondements de notre pays et qu'elle doit le rester, dans tous les domaines : http://www.laquadrature.net/
      0  0

  10. #10
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    Par défaut
    lorsque le if ce termine aprés insertion, le résultat est le même, aprés le vote si utilisateur appuie sur f5 il comptabilise comme un vote. comment évité ca? comment faire svp?

    code modifié:
    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
     
    $query = "SELECT vote_ip FROM $table1 WHERE sondage_id="."'" . $numeroDuSondage['nbre_entrees'] . "'  " ;
    $result = mysql_query($query);
    $num = mysql_num_rows($result);
     
     
    if (isset($_POST['sondage'])) { //valeur du if
    if ($infos['question'] != "")
    echo '<span style="color:#4C1B1B;font-size:20px;">'.$infos['question'].'</span>'.'<br/>'. "";
    if ($infos['proposition1'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop1' id='prop1' /> <label for='prop1'>" .'<img src="img/sondage/greenrond.gif">'.'<img src="img/sondage/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/sondage/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    	if ($infos['proposition2'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop2' id='prop2' /> <label for='prop2'>" .'<img src="img/sondage/blackrond.gif">'.'<img src="img/sondage/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/sondage/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
    if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop3' id='prop3' /> <label for='prop3'>" .'<img src="img/sondage/redrond.gif">'.'<img src="img/sondage/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/sondage/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
     
     
    	if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop4' id='prop4' /> <label for='prop4'>" .'<img src="img/sondage/bluerond.gif">'.'<img src="img/sondage/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/sondage/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
         if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop5' id='prop5' /> <label for='prop5'>" .'<img src="img/sondage/copperrond.gif">'.'<img src="img/sondage/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/sondage/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
    	echo '<a href="archive.php" style="text-decoration:none;padding-left:10em;"><b><font color="#4C1B1B"> les résultats des anciens sondages </b></font></a>';
     
    exit;
     
     
     
    $vote_ip = $_SERVER['REMOTE_ADDR'];
    $sondage_id = $numeroDuSondage['nbre_entrees'];
    $sql = "INSERT INTO $table1 (sondage_id, vote_ip) VALUES ($sondage_id, '$vote_ip')";
    mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
    }//insertion compris dans le if
    help me please
      0  0

  11. #11
    Membre expert
    Avatar de ThomasR
    Homme Profil pro
    Directeur technique
    Inscrit en
    Décembre 2007
    Messages
    2 230
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Décembre 2007
    Messages : 2 230
    Points : 3 972
    Points
    3 972
    Par défaut
    , aprés le vote si utilisateur appuie sur f5 il comptabilise comme un vote. comment évité ca
    Comme dit dans ma réponse précédente, il faut faire une redirection afin de perdre les variables POST.

    Pas la peine d'avoir un input type hidden pour faire ta vérification il te suffit de faire :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    if(isset($_POST['prop1'])){
        $vote_ip = $_SERVER['REMOTE_ADDR'];
        $sondage_id = $numeroDuSondage['nbre_entrees'];
        $sql = "INSERT INTO $table1 (sondage_id, vote_ip) VALUES ($sondage_id, '$vote_ip')";
        mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
       header('location:/');
    }
    Aussi, je ne comprends pas pourquoi tu n'affiches le formulaire que si les variables POST sont valorisés

    Pour finir, l'utilisateur ne devrait même pas avoir accès au formulaire de vote si il a déjà voté.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    if(!mysql_num_rows(mysql_query('SELECT * FROM sondages WHERE vote_id='.$vote_id.' AND user_ip="'.$user_ip.'"')) > 0){
        echo 'formulaire de vote';
    }
    else{
        echo 'À déjà voté pour ce sondage';
    }
      0  0

  12. #12
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    Par défaut
    m'ajoute toujours +1 dans la base aprés avoir voté en appuyant sur f5. qqn sait-il pourquoi, une solution?

    merci de votre aide d'avance
      0  0

  13. #13
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    Par défaut
    bonjour à tous,

    Toujours des problèmes sur le sondage en php, je vous demande de l'aide...
    mes problémes:
    autoriser un seul vote par visiteur, une fois le visiteur à voté lui afficher le sondage sans le bouton voté.
    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
     
    //sondage aprés validation
    if (isset($_POST['sondage'])) { //je regarde si y a des donnée dans le formulaire
     
    //sondage aprés validation sans bouton
    echo '<img src="img/_sondage.gif"><br>';
    if ($infos['question'] != "")
    echo '<span style="color:#4C1B1B;font-size:20px;">'.$infos['question'].'</span>'.'<br/>'. "";
    if ($infos['proposition1'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop1' id='prop1' /> <label for='prop1'>" .'<img src="img/sondage/greenrond.gif">'.'<img src="img/sondage/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/sondage/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    	if ($infos['proposition2'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop2' id='prop2' /> <label for='prop2'>" .'<img src="img/sondage/blackrond.gif">'.'<img src="img/sondage/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/sondage/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
    if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop3' id='prop3' /> <label for='prop3'>" .'<img src="img/sondage/redrond.gif">'.'<img src="img/sondage/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/sondage/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
     
     
    	if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop4' id='prop4' /> <label for='prop4'>" .'<img src="img/sondage/bluerond.gif">'.'<img src="img/sondage/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/sondage/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
         if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop5' id='prop5' /> <label for='prop5'>" .'<img src="img/sondage/copperrond.gif">'.'<img src="img/sondage/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/sondage/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
    	echo '<a href="archive.php" style="text-decoration:none;padding-left:10em;"><b><font color="#4C1B1B"> les résultats des anciens sondages </b></font></a>';
    }
    exit();// ce bouton casse le design du site
     
     
    //sondage avec bouton avant validation
    echo '<img src="img/_sondage.gif"><br>';
     
    echo '<span style="color:#4A1A2C;font-size:15px;">'.$infos['question'].'</span>'.'<br/>'. "";
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop1' id='prop1' /> <label for='prop1'>" .'<img src="img/sondage/greenrond.gif">'.'<img src="img/sondage/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/sondage/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop2' id='prop2' /> <label for='prop2'>" .'<img src="img/sondage/blackrond.gif">'.'<img src="img/sondage/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/sondage/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
           if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop3' id='prop3' /> <label for='prop3'>" .'<img src="img/sondage/redrond.gif">'.'<img src="img/sondage/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/sondage/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
           if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop4' id='prop4' /> <label for='prop4'>" .'<img src="img/sondage/bluerond.gif">'.'<img src="img/sondage/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/sondage/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
    	        if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop5' id='prop5' /> <label for='prop5'>" .'<img src="img/sondage/copperrond.gif">'.'<img src="img/sondage/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/sondage/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
    // insére dans la base le vote
    $vote_ip = $_SERVER['REMOTE_ADDR'];
    $sondage_id = $numeroDuSondage['nbre_entrees'];
    $sql = "INSERT INTO $table1 (sondage_id, vote_ip) VALUES ($sondage_id, '$vote_ip')";
    mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
    avec la fonction exit(); casse le css de la page mais affiche le formulaire aprés le vote sans le bouton, mais quand on revient sur la page home le formulaire avant vote revient (probléme)

    qqn peut-il m'aidé à résoudre ces problémes, help me please
      0  0

  14. #14
    Membre expérimenté
    Avatar de Rakken
    Homme Profil pro
    Inscrit en
    Août 2006
    Messages
    1 257
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 257
    Points : 1 341
    Points
    1 341
    Par défaut
    Relis ATTENTIVEMENT le dernier post de ThomasR et fait un minimum d'effort de reflexion, merci.
    La solution qu'il propose me semble parfaitement convenir à ton problème.
    Rakken

    Oneira, un monde imaginaire d'Heroic Fantasy.

    Parce que la présomption d'innocence est un des fondements de notre pays et qu'elle doit le rester, dans tous les domaines : http://www.laquadrature.net/
      0  0

  15. #15
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    Par défaut
    voici le script à partir de la réponse de thomasR:
    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
     
    if(isset($_POST['prop'])){
        $vote_ip = $_SERVER['REMOTE_ADDR'];
        $sondage_id = $numeroDuSondage['nbre_entrees'];
        $sql = "INSERT INTO $table1 (sondage_id, vote_ip) VALUES ($sondage_id, '$vote_ip')";
        mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
       header('location:/');
    }
    if(!mysql_num_rows(mysql_query('SELECT * FROM $table1 WHERE sondage_id='.$sondage_id.' AND vote_ip="'.$vote_ip.'"')) > 0){
    //sondage avec bouton avant validation
    echo '<img src="img/_sondage.gif"><br>';
     
    echo '<span style="color:#4A1A2C;font-size:15px;">'.$infos['question'].'</span>'.'<br/>'. "";
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop' id='prop' /> <label for='prop1'>" .'<img src="img/sondage/greenrond.gif">'.'<img src="img/sondage/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/sondage/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop' id='prop' /> <label for='prop2'>" .'<img src="img/sondage/blackrond.gif">'.'<img src="img/sondage/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/sondage/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
           if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop' id='prop' /> <label for='prop3'>" .'<img src="img/sondage/redrond.gif">'.'<img src="img/sondage/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/sondage/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
           if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop' id='prop' /> <label for='prop4'>" .'<img src="img/sondage/bluerond.gif">'.'<img src="img/sondage/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/sondage/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
    	        if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop' id='prop' /> <label for='prop5'>" .'<img src="img/sondage/copperrond.gif">'.'<img src="img/sondage/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/sondage/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
    }
    else{
    //sondage aprés validation
     
     
    //sondage aprés validation sans bouton
    echo '<img src="img/_sondage.gif"><br>';
    if ($infos['question'] != "")
    echo '<span style="color:#4C1B1B;font-size:20px;">'.$infos['question'].'</span>'.'<br/>'. "";
    if ($infos['proposition1'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop' id='prop1' /> <label for='prop1'>" .'<img src="img/sondage/greenrond.gif">'.'<img src="img/sondage/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/sondage/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    	if ($infos['proposition2'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop' id='prop2' /> <label for='prop2'>" .'<img src="img/sondage/blackrond.gif">'.'<img src="img/sondage/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/sondage/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
    if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop' id='prop3' /> <label for='prop3'>" .'<img src="img/sondage/redrond.gif">'.'<img src="img/sondage/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/sondage/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
     
     
    	if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop' id='prop4' /> <label for='prop4'>" .'<img src="img/sondage/bluerond.gif">'.'<img src="img/sondage/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/sondage/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
         if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop' id='prop5' /> <label for='prop5'>" .'<img src="img/sondage/copperrond.gif">'.'<img src="img/sondage/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/sondage/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
    	echo '<a href="archive.php" style="text-decoration:none;padding-left:10em;"><b><font color="#4C1B1B"> les résultats des anciens sondages </b></font></a>';
     
    //exit();
    }
    probléme avec mysql_num_rows supplied argument is not a valid MySQL result resource.
    aidez moi svp, suis perdu la!
      0  0

  16. #16
    Membre expérimenté
    Avatar de Rakken
    Homme Profil pro
    Inscrit en
    Août 2006
    Messages
    1 257
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 257
    Points : 1 341
    Points
    1 341
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    if(!mysql_num_rows(mysql_query('SELECT * FROM $table1 WHERE sondage_id='.$sondage_id.' AND vote_ip="'.$vote_ip.'"')) > 0){
    $table1 est dans une chaine entre '. Ce qui fait qu'il n'est pas interprété, donc ta requete n'est pas valide. C'est facile à voir avec la coloration syntaxique, $table est en rouge alors que $sondage_id et $vote_ip sont en vert.

    Et compter le nombre de résultat sur une requete qui n'est pas valide, ca te crashe une erreur, c'est normal.
    Bref, ton mysql_query doit ressembler à ca :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    mysql_query('SELECT * FROM '.$table1.' WHERE sondage_id='.$sondage_id.' AND vote_ip="'.$vote_ip.'")
    Rakken

    Oneira, un monde imaginaire d'Heroic Fantasy.

    Parce que la présomption d'innocence est un des fondements de notre pays et qu'elle doit le rester, dans tous les domaines : http://www.laquadrature.net/
      0  0

  17. #17
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    Par défaut
    j'ai reussit pour le module sondage, je vous remercie de votre aide et de votre patience....

    je souhaite d'avoir une nouvelle fois votre aide sur un autre problème....
    sur ce même module sondage, il ya un lien a href qui pointe vers archive et je souhaite que cette archive remplace le module sondage sur la même page mais je sais pas du tout comment faire?
    auriez-vous des suggestion, une méthode?

    merci
      0  0

  18. #18
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    Par défaut
    le probléme sur le sondage, dés arrivé du visiteur son ip est enregistré dans la base alors que j'aimerais qu'elle soit enregistré qu'aprés avoir voté.

    le script
    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
     
    if ($num > 0) {
    //sondage aprés validation sans bouton
    echo '<img src="img/_sondage.gif"><br>';
    if ($infos['question'] != "")
    echo '<span style="color:#4A1A2C;font-size:20px;font-weight:bold;">'.$infos['question'].'</span>'.'<br/>'. "";
    if ($infos['proposition1'] != "")
    echo  ''.$infos['proposition1'].'</span>'.'<br/>'.  '<img src="img/sondage/greenrond.gif">'.'<img src="img/sondage/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/sondage/greendroit.gif"/>' . round($pourcentage_r1) . "%<br />";
     
    	if ($infos['proposition2'] != "")
    echo  ''.$infos['proposition2'].'</span>'.'<br/>'.  '<img src="img/sondage/blackrond.gif">'.'<img src="img/sondage/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/sondage/blackdroit.gif"/>' . round($pourcentage_r2) . "% <br />";
     
    if ($infos['proposition3'] != "")
    echo  ''.$infos['proposition3'].'</span>'.'<br/>'. '<img src="img/sondage/redrond.gif">'.'<img src="img/sondage/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/sondage/reddroit.gif"/>' . round($pourcentage_r3) . "% <br />";
     
     
    	if ($infos['proposition4'] != "")
    echo  ''.$infos['proposition4'].'</span>'.'<br/>'. '<img src="img/sondage/bluerond.gif">'.'<img src="img/sondage/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/sondage/bluedroit.gif"/>' . round($pourcentage_r4) . "% <br />";
     
         if ($infos['proposition5'] != "")
    echo  ''.$infos['proposition5'].'</span>'.'<br/>'. '<img src="img/sondage/copperrond.gif">'.'<img src="img/sondage/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/sondage/copperdroit.gif"/>' . round($pourcentage_r5) . "% <br />";
     
    echo '<div align="right" class="archives"><a href="sondage/sondage.php?arch=archive">les résultats des anciens sondages +</a></div><br><br><br>';
     
    //exit();// ce bouton casse le design du site
     }
     else{
     //sondage avec bouton avant validation
    echo '<img src="img/_sondage.gif"><br>';
     
    echo '<span style="color:#4A1A2C;font-size:15px;">'.$infos['question'].'</span>'.'<br/>'. "";
    echo  '<span style="padding-left:2em;">'.$infos['proposition1'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop1' id='prop1' /> <label for='prop1'>" .'<img src="img/sondage/greenrond.gif">'.'<img src="img/sondage/green.gif" height="16" width="' . $pourcentage_r1 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r1).'%" />' . '<img src="img/sondage/greendroit.gif"/>' . round($pourcentage_r1) . "% </label><br />";
     
    echo  '<span style="padding-left:2em;">'.$infos['proposition2'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop2' id='prop2' /> <label for='prop2'>" .'<img src="img/sondage/blackrond.gif">'.'<img src="img/sondage/black.gif" height="16" width="' . $pourcentage_r2 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r2).'%" />' . '<img src="img/sondage/blackdroit.gif"/>' . round($pourcentage_r2) . "% </label><br />";
     
           if ($infos['proposition3'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition3'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop3' id='prop3' /> <label for='prop3'>" .'<img src="img/sondage/redrond.gif">'.'<img src="img/sondage/red.gif" height="16" width="' . $pourcentage_r3 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r3).'%" />' . '<img src="img/sondage/reddroit.gif"/>' . round($pourcentage_r3) . "% </label><br />";
           if ($infos['proposition4'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition4'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop4' id='prop4' /> <label for='prop4'>" .'<img src="img/sondage/bluerond.gif">'.'<img src="img/sondage/blue.gif" height="16" width="' . $pourcentage_r4 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r4).'%" />' . '<img src="img/sondage/bluedroit.gif"/>' . round($pourcentage_r4) . "% </label><br />";
     
    	   if ($infos['proposition5'] != "")
    echo  '<span style="padding-left:2em;">'.$infos['proposition5'].'</span>'.'<br/>'.  "<input type='radio' name='sondage' value='prop5' id='prop5' /> <label for='prop5'>" .'<img src="img/sondage/copperrond.gif">'.'<img src="img/sondage/copper.gif" height="16" width="' . $pourcentage_r5 / 100 * $long_max_bloc . '" alt="'.round($pourcentage_r5).'%" />' . '<img src="img/sondage/copperdroit.gif"/>' . round($pourcentage_r5) . "% </label><br /><br /><br />";
     
    echo '<input type="submit" name="voter" value="Voter !"/><br />';
    echo '<div align="right" class="archives"><a href="sondage/sondage.php?arch=archive">les résultats des anciens sondages +</a></div>';
    // insére dans la base le vote
     
    $vote_ip = $_SERVER['REMOTE_ADDR'];
    $sondage_id = $numeroDuSondage['nbre_entrees'];
    $sql = "INSERT INTO $table1 (sondage_id, vote_ip) VALUES ($sondage_id, '$vote_ip')";
    mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
    }
    de l'aide s'il vous plait
      0  0

  19. #19
    Membre expérimenté
    Avatar de Rakken
    Homme Profil pro
    Inscrit en
    Août 2006
    Messages
    1 257
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 1 257
    Points : 1 341
    Points
    1 341
    Par défaut
    Au risque de, moi aussi, me répéter, relis (encore) le dernier message de ThomasR. La réponse qu'il t'a donné n'est pas celle que tu as codé.

    Dire "je ne comprend pas" jusqu'a ce qu'on te code intégralement ton sondage ne marchera pas. Il faut réflechir un minimum.
    Que fait ton programme ? Essaie de le suivre, pas à pas.
    Tu arrives sur ta page la première fois, premier if, est-ce que tu rentres dedans ou pas, si oui, la requête donne quoi comme résultat ? Et ainsi de suite.

    Je t'aide pour le début :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    if(isset($_POST["sondage"])) {
    La première fois que tu rentres sur ta page, tu rentres dans le if ou pas ?
    ...
    ...
    Non. Parce que $_POST['sondage'] n'est pas défini. Donc $num vaut 0.
    ce qui fait qu'a ton tests suivant, quand tu testes $num (que du coup tu n'as même pas initialisé au passage) tu affiches systèmatiquement le formulaire "avec bouton".

    C'est comme ca qu'il faut réfléchir. Pas rester devant son écran à le regarder béatement en attendant une illumination soudaine.
    Rakken

    Oneira, un monde imaginaire d'Heroic Fantasy.

    Parce que la présomption d'innocence est un des fondements de notre pays et qu'elle doit le rester, dans tous les domaines : http://www.laquadrature.net/
      0  0

  20. #20
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2006
    Messages
    284
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2006
    Messages : 284
    Points : 62
    Points
    62
    Par défaut
    merci beaucoup, aprés relecture j'ai pu arriver au but du sondage mais j'aimerais vous exposez un autre probléme.

    sur le site j'ai une partie A qui est le sondage avec un lien qui pointe vers archive qui sera la partie B. j'aimerais que la partie B s'affiche à la place de la partie A avec les variable _get j'imagine mais je c pas comment faire?

    qqn pourrais me montrer un exemple, ou un tuto?

    merci
      0  0

Discussions similaires

  1. Réponses: 1
    Dernier message: 16/01/2006, 17h36
  2. [PHP] Comment actualiser une frame à partir d'une autre ?
    Par pekka77 dans le forum Général JavaScript
    Réponses: 12
    Dernier message: 28/10/2005, 12h03
  3. [FLASH MX] [PHP] Probleme d'integration
    Par chocobos dans le forum Flash
    Réponses: 8
    Dernier message: 17/08/2005, 17h18
  4. [XSL][PHP] probleme de passage de parametres...
    Par jesus144 dans le forum XSL/XSLT/XPATH
    Réponses: 3
    Dernier message: 20/06/2005, 23h25
  5. [type MIME] css généré par php -> probleme
    Par prgasp77 dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 23/09/2004, 21h13

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