Visualizzazione dei risultati da 1 a 2 su 2

Discussione: errore form

  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2005
    Messaggi
    579

    errore form

    ho questo form e vorrei capire xkè mi crea questo errore:
    Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';' in /membri2/scacchirakoforum/join.php on line 10

    la pagina è la seguente:

    <?php
    require("config.php");

    echo "


    \n";
    if ($action == FALSE)
    {
    echo "<form action=\"./join.php\" method=\"post\">\n";
    echo "<table width=666 border=\"0\">\n";
    echo "<td width="62">\n";
    echo "<tr>
    <td width="62">\n";
    echo "<td width=296>User</td>
    <td width="64">\n";
    echo "<td width=150><input name=\"user\" type=\"text\"></td>
    <td width="62">\n";
    echo "</tr>
    <td width="62">\n";
    echo "<tr>
    <td width="62">\n";
    echo "<td width="296">Pass</td>
    <td width="64">\n";
    echo "<td width="150"><input name=\"pass\" type=\"password\"></td>
    <td width="62">\n";
    echo "</tr>
    <td width="62">\n";
    echo "<tr>
    <td width="62">\n";
    echo "<td width="296">mail</td>
    <td width="64">\n";
    echo "<td width="150"><input name=\"mail\" type=\"text\"></td>
    <td width="62">\n";
    echo "</tr>
    <td width="62">\n";
    echo "<tr>
    <td width="62">\n";
    echo "<td width="296">contatto Yahoo</td>
    <td width="64">\n";
    echo "<td width="150"><input name=\"yahoo\" type=\"text\"></td>
    <td width="62">\n";
    echo "</tr>
    <td width="62">\n";
    echo "<tr>
    <td width="62">\n";
    echo "<td width="296">contatto Icq</td>
    <td width="64">\n";
    echo "<td width="150"><input name=\"icq\" type=\"text\"></td>
    <td width="62">\n";
    echo "</tr>
    <td width="62">\n";
    echo "<tr>
    <td width="62">\n";
    echo "<td width="296">contatto Msn</td>
    <td width="64">\n";
    echo "<td width="150"><input name=\"Msn\" type=\"text\"></td>
    <td width="62">\n";
    echo "</tr>
    <td width="62">\n";
    echo "<tr>
    <td width="62">\n";
    echo "<td width="296">indirizzo sito</td>
    <td width="64">\n";
    echo "<td width="150"><input name=\"sito\" type=\"text\"></td>
    <td width="62">\n";
    echo "</tr>
    <td width="62">\n";echo "<tr>
    <td width="62">\n";
    echo "<tr align=\"center\">
    <td width="62">\n";
    echo "<td colspan=\"2\" width="296"><input type=\"hidden\" name=\"action\" value=\"join\"><input type=\"submit\" value=\" Join! \"></td>
    <td width="64">\n";
    echo "</tr>
    <td width="62">\n";
    echo "</table>\n";
    echo "</form>\n";
    }
    else
    {
    if ($user==TRUE && $pass==TRUE && $mail==TRUE )
    {
    if ($cognome == FALSE) $cognome = "n/a";
    if ($yahoo == FALSE) $ = "n/a";
    if ($icq == FALSE) $ = "n/a";
    if ($Msn == FALSE) $ = "n/a";
    if ($sito == FALSE) $ = "n/a";
    @mysql_query("INSERT INTO 'utenti' ( 'id' , 'user' , 'pass' , 'mail' , 'yahoo' , 'icq' , 'Msn' , 'sito' )
    VALUES ('',
    '" . $user . "',
    '" . $pass . "',
    '" . $mail . "',
    '" . $mail . "',
    '" . $yahoo . "',
    '" . $icq . "',
    '" . $Msn . "',
    '" . $sito . "');");

    echo "Grazie!
    Registrazione effettuata correttamente! Al più presto ti arriverà una e-mail

    all'indirizzo che tu ci hai dato, e la dovrai verificare la tua registrazione
    ";
    }
    else
    {
    echo "Errore!
    Non hai compilato tutti i campi obbligatori.";
    }
    }

    @mysql_close();
    ?>

    grazie
    ciao
    l'uomo è tutto ciò che non può essere

    http://www.ebug.it Discussioni da web Designer

    http://www.ebug.it/?p=354 e Dart Fener dove lo mettiamo lol

  2. #2
    prima delle " devi mettere \

    \"

    ricorda che NON puoi farti aiutare chiedendo tramite MP!!
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

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.