Salta al contenuto
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • 0 Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.
Collassa
Connect.gt
Il network Search On
Connect.gt WMF AI Festival Accademia Advanced SEO Tool AgentCy Social Media Strategies Search Tech
Registrati Accedi
Connect.gt
Stream Interest Categorie Hashtag
D

dodge

@dodge
Non seguire Segui
Informazioni
Post
4
Discussioni
2
Condivisioni
0
Gruppi
0
Da chi è seguito
0
Chi segue
0

Post

Recenti Migliore Controverso

  • Sondaggio
    D dodge
    Coding

    massy

    hai 3 strade:

    1. ne trovi uno che fa quello che chiedi pronto da scaricare
    2. impari e lo programmi da solo
    3. dai qualche informazione più precisa e proviamo a darti una mano. 🙂

    Grazie per la disponibilita massy, fortunatamente ho risolto bastava inserire il tag <?php require (linkando poll.php) mi sai consigliare uno script che mi permetta di fare la registrazione e login del forum direttamente dal sito?


  • Sondaggio
    D dodge
    Coding

    Infatti, ho lasciato stare questo script, èra pieno di problemi, ora ne ho messo un altro e funziona correttamente solo che appena voto, mi mostra i risultati in una pagina bianca, mentre io vorrei fare in modo che quando uno vota, al posto della domanda e le varie opzioni appaiano i risultati, come faccio?
    vi prego aiutatemi mi sto impazzendo


  • Help
    D dodge
    Coding

    per favore aiutatemi
    come faccio a fare comparire i risultati di un sondaggio nella stessa tabella delle domande?


  • Sondaggio
    D dodge
    Coding

    Ciao a tutti, ho scaricato lo scipt simplepoll ma non riesco ad inserirlo nel mio sito, non so quale sia il tag per farlo comparire al interno del sito, vi posto il file poll.php

    <?php
    include("settings.inc.php");
    if (isset($mode)) {
    switch ($mode) {
    // If user voted, process their vote:
    case "vote":
    if (isset($vote)) {
    $vote_allow = 1;
    $file_contents = file($current_poll);
    if (((isset($vote_logging))) && (($vote_logging == 1) || ($vote_logging == 3))) {
    foreach ($file_contents as $line) {
    if (eregi($REMOTE_ADDR, $line)) {
    echo $already_voted;
    display_form();
    $set_already_voted = 1;
    $vote_allow = 0;
    break;
    }
    }
    }
    if (((isset($vote_logging))) && (($vote_logging == 2) || ($vote_logging == 3))) {
    if ((isset($voted)) && ($voted == "on")) {
    if (!$set_already_voted) {
    echo $already_voted;
    display_form();
    }
    $vote_allow = 0;
    break;
    }
    }
    if ($vote_allow) {
    $poll_string = $vote . "|" . $REMOTE_ADDR . "\n";
    $fp = fopen($current_poll, "a");
    $string_size = strlen($poll_string);
    if (fputs($fp, $poll_string, $string_size)) {
    if (((isset($vote_logging))) && (($vote_logging == 2) || ($vote_logging == 3))) {
    setcookie ("voted", "on", time()+$time_toban);
    }
    echo $vote_cast . "
    ";
    display_form();
    }
    fclose($fp);
    }
    }
    break;
    // If user asked to show results, display results:
    case "results":
    $poll_contents = file($current_poll);
    // How many total votes we have;
    $total_votes = sizeof($poll_contents);
    $answers = file($config);
    if ($total_votes == 0) {
    echo $no_votes_yet;
    display_form();
    }
    else {
    echo "Ratings:
    ";
    $size_answers = sizeof($answers) - 1;
    $votes[$size_answers] = 0;
    for ($current_number = 1; $current_number <= $size_answers; $current_number++) {
    foreach ($poll_contents as $line) {
    $line_parts = explode("|", $line);
    if ($line_parts[0] == $current_number) {
    $votes[$current_number]++;
    }
    }
    $percentage = $votes[$current_number]/$total_votes*100;
    $graph_width = 2 * $votes[$current_number];
    echo "<img src=tick.gif height=10 width=" . $graph_width . ">" . round($percentage, 2) . " %" . $answers[$current_number] . ": " . $votes[$current_number]/1 . " votes.
    ";
    }
    echo "Total votes: " . $total_votes;
    }
    break;

       case "previous":
            $file_contents = file($archive_poll);
            if (sizeof($file_contents) == 0) {
               echo $no_previous;
               display_form();
            }
            else {
                 for ($i=0;$i<sizeof($file_contents);$i++) {
                     $each_poll = explode("|", $file_contents[$i]);
                     echo $each_poll[0] . "
    

    " . $each_poll[1] . "<hr>";
    }
    }
    break;

       // If no proper mode selected, display voting form;
       default: display_form(); break;
    

    }
    }
    // If no mode selected, display voting form;
    if (!isset($mode)) {
    display_form();
    }

    function display_form() {
    global $config;
    global $no_voting;
    global $PHP_SELF;
    echo "<form name=poll action=" . $PHP_SELF . " method=post>";
    $answers = file($config);
    if (sizeof($answers) == 0) {
    echo $no_voting;
    }
    else {
    $current_number = 1;
    $size_answers = sizeof($answers) - 1;
    // Display question;
    echo $answers[0] . "
    ";
    // Display answers;
    for ($current_number = 1; $current_number <= $size_answers; $current_number++) {
    echo "<input type=radio name=vote value=" . $current_number . ">" . $answers[$current_number] . "
    ";
    }
    echo "<input type=hidden name=mode value=vote>";
    echo "
    <input type=submit value=vote>";
    echo "</form>";
    echo "Results";
    echo "";
    echo "Previous polls";
    }
    }
    ?>

    Cosa devo prendere in questo codice per far apparire il sondaggio nel mio sito?

  • Accedi

  • Non hai un account? Registrati

  • Accedi o registrati per effettuare la ricerca.
  • Primo post
    Ultimo post
Home Accedi Registrati
Menu
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.