Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Dove sta l'errore???

  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2005
    Messaggi
    239

    Dove sta l'errore???

    ciao ragazzi non riesco a capire il perchè non funziona questo sisema di registraione . . .secondo voi dove sta l'errore???? . . . .

    HTML

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Registrazione</title>
    <style type="text/css">
    <!--
    .style8 {font-weight: bold; font-family: "Courier New", Courier, monospace;}
    body {
    background-color: #000000;
    }
    -->
    </style>
    </head>

    <body>

    <form method="post" action="registrati.php">



    </p>


    </p>
    <table width="760" height="500" border="0" align="center" background="base.jpg">
    <tr>
    <td width="760" height="500" align="left" valign="top"><table width="760" height="454" border="0" align="center">
    <tr>

    <td width="379" height="85"><p align="center" class="style8">Nome:

    <INPUt type="text" name="nome" size=50 maxleght=100></p> </td>

    <td width="371"><p align="center" class="style8">Cognome:

    <INPUt type="text" name="cognome" size=50 maxleght=100></p> </td>
    </tr>
    <tr>

    <td height="53"><p align="center" class="style8">Username:

    <INPUt type="text" name="user" size=50 maxleght=100></p></td>

    <td><p align="center" class="style8">Password:

    <INPUt type="text" name="pass" size=50 maxleght=25></p> </td>
    </tr>
    <tr>

    <td><p align="center" class="style8">E-Mail:

    <INPUt type="text" name="email" size=50 maxleght=100></p></td>

    <td><p align="center" class="style8">Contatto Msn Messenger:

    <INPUt type="text" name="msn" size=50 maxleght=100></p> </td>
    </tr>
    <tr>

    <td><p align="center" class="style8">Contatto ICQ

    <INPUt type="text" name="icq" size=50 maxleght=100></p></td>

    <td><p align="center" class="style8">Velocit&agrave; Connessione:

    <INPUt type="text" name="ve_conn" size=50 maxleght=100></p></td>
    </tr>
    <tr>

    <td><p align="center" class="style8">Genere Film Preferito:

    <INPUt type="text" name="film_pref" size=50 maxleght=100></p></td>

    <td><p align="center" class="style8">Genere Musica Preferita:

    <INPUt type="text" name="musica_pref" size=50 maxleght=100></p></td>
    </tr>
    <tr>

    <td><p align="center" class="style8">Genere Giochi Preferiti:

    <INPUt type="text" name="giochi_pref" size=50 maxleght=100></p></td>

    <td><p align="center" class="style8">
    <input type="SUBMIT" NAME="invio" VALUE="Registrami!"></p></td>
    </tr>
    </table></td>
    </tr>
    </table>
    </body>
    </html>


    PHP

    <?

    if ((!$nome) || (!$cognome) || (!$user) || (!$pass) || (!$email) || (!$msn) || (!$icq) || (!$ve_conn) || (!$film_pref) || (!$musica_pref) || (!$giochi_pref)) {
    header(
    "location: http://www.ameddaclub.com/archivio/registrazione.html"
    );
    exit;
    }

    $db_nome = "**********";
    $nome_tabella = "**********";

    $connessione = @mysql_connect("***.**********.***", "********", "**********")
    or die("Impossibile stabilire una connessione.");

    $db = @mysql_select_db($db_nome, $connessione)
    or die("Impossibile selezionare il database.");

    $sql = "INSERT INTO $nome_tabella

    (nome, cognome, user, pass, email, msn, icq, ve_conn, film_pref, musica_pref, giochi_pref)

    VALUES

    (\"$nome\",\"$cognome\",\"$user\",password(\"$pass \"),\"$email\",\"$msn\",\"$icq\",\"$ve_conn\",\"$f ilm_pref\",\"$musica_pref\",\"$giochi_pref\")
    ";

    $risultato = @mysql_query($sql,$connessione)
    or die("Impossibile eseguire l'interrogazione.");
    ?>
    <html>
    <style type="text/css">
    <!--
    .style2 {font-family: "Courier New", Courier, monospace}
    body {
    background-color: #000000;
    }
    -->
    </style><title>Registrazione</title>
    <body>

    <p class="style2"></p>



    </p>
    <table width="760" height="500" border="0" align="center" background="base.jpg">
    <tr>
    <td width="720"><p align="center" class="style2"><span class="style2">Nome: <? echo "$nome"; ?></span></p>
    <p align="center" class="style2">Cognome: <? echo "$cognome"; ?></p>
    <p align="center" class="style2">UserName: <? echo "$user"; ?></p>
    <p align="center" class="style2">Password: <? echo "$pass"; ?></p>
    <p align="center" class="style2">E-Mail: <? echo "$email"; ?></p>
    <p align="center" class="style2">Contatto MSN Messenger: <? echo "$msn"; ?></p>
    <p align="center" class="style2">Contatto ICQ: <? echo "$icq"; ?></p>
    <p align="center" class="style2"> Velocit&ograve&agrave; Connessione: <? echo "$ve_conn"; ?></p>
    <p align="center" class="style2">Genere Film Preferito: <? echo "$film_pref"; ?></p>
    <p align="center" class="style2">Genere Musica Preferita: <? echo "$musica_pref"; ?></p>
    <p align="center" class="style2">Genere Giochi Preferiti: <? echo "$giochi_pref"; ?></p>
    <p align="center"><span class="style2">Vai al LogIn</span></p></td>
    </tr>
    </table>
    </body>
    </html>

  2. #2
    Sicuramente nel titolo della discussione, che non rispetta quanto scritto nel regolamento
    Addio Aldo, amico mio... [03/12/70 - 16/08/03]

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.