Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 15 su 15
  1. #11
    Utente di HTML.it L'avatar di mybox
    Registrato dal
    Mar 2007
    Messaggi
    507
    faccio così ma mi da errore...



    Codice PHP:
    <?php 
    rand
    (); 
    $random1 rand(0hexdec("ffffff")); 
    $random2 rand(0hexdec("ffffff")); 

    echo 
    "<form action=\"login.php\" method=\"get\">";
            echo 
    "Nick:";
            echo 
    "
    "
    ;
            echo 
    "<input type=\"text\" name=\"uid\" size=\"8\" maxlength=\"15\" style=\"background-color: #$random1\" />";         
                   echo 
    "
    "
    ;
            echo 
    "Password:";
            echo 
    "
    "
    ;
            echo 
    "<input type=\"password\" name=\"pwd\" size=\"8\" maxlength=\"15\" style=\"background-color: #$random2\" />";
    ?>         echo "
    ";
            echo "<input type=\"hidden\" name=\"svw\" value=\"$svw\"/>";
            echo "<input type=\"submit\" value=\"login\"/>";
            echo "</form>";
                    echo "
    ";

  2. #12
    togli immediatamente il ?> a metà codice..con quello le seguenti istruzioni PHP non vengono mica eseguite!

  3. #13
    Utente di HTML.it L'avatar di mybox
    Registrato dal
    Mar 2007
    Messaggi
    507
    [/php]

    <?php
    rand();
    $random1 = rand(0, hexdec("ffffff"));
    $random2 = rand(0, hexdec("ffffff"));
    ?>

    echo "<form action=\"login.php\" method=\"get\">";
    echo "Nick:";

    echo "
    ";
    echo "<input type=\"text\" name=\"uid\" size=\"8\" maxlength=\"15\" style=\"background-color: #$random1\" />";
    echo "
    ";

    echo "Password:";

    echo "
    ";

    echo "<input type=\"password\" name=\"pwd\" size=\"8\" maxlength=\"15\" style=\"background-color: #$random2\" />";
    echo "
    ";

    echo "<input type=\"hidden\" name=\"svw\" value=\"$svw\"/>";

    echo "<input type=\"submit\" value=\"login\"/>";

    echo "</form>";

    echo "
    ";
    [/php]

    NON funziona...
    parse error:syntax error, '<'

  4. #14
    nlle prime righe

    <?php
    rand();
    $random1 = rand(0, hexdec("ffffff"));
    $random2 = rand(0, hexdec("ffffff"));
    ?>

    togli il ?> finale e mettilo in fondo all'esempio

  5. #15
    Utente di HTML.it L'avatar di mybox
    Registrato dal
    Mar 2007
    Messaggi
    507
    Codice PHP:
    <?php 
    rand
    (); 
    $random1 rand(0hexdec("ffffff")); 
    $random2 rand(0hexdec("ffffff"));
    echo 
    "<form action=\"login.php\" method=\"get\">";
        echo 
    "Nick:";

    echo 
    "
    "
    ;
    echo 
    "<input type=\"text\" name=\"uid\" size=\"8\" maxlength=\"15\" style=\"background-color: #$random1\" />";
    echo 
    "
    "
    ;

    echo 
    "Password:";

    echo 
    "
    "
    ;

    echo 
    "<input type=\"password\" name=\"pwd\" size=\"8\" maxlength=\"15\" style=\"background-color: #$random2\" />";
    echo 
    "
    "
    ;
            
    echo 
    "<input type=\"hidden\" name=\"svw\" value=\"$svw\"/>";

    echo 
    "<input type=\"submit\" value=\"login\"/>";

    echo 
    "</form>";

    echo 
    "
    "
    ;

    ?>
    anche così errore... ma il ?> dove va messo???
    penso di aver provato a metterlo ovunque ma nulla

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 © 2026 vBulletin Solutions, Inc. All rights reserved.