help tag echo

spaceboy

Nuovo Utente
22 Lug 2006
1
0
0
Ciao a tutti!
Ho seguito il tutorial di Jacopo per creare una community...

Qualcuno saprebbe dirmi come faccio a cambiare la dimensione e il colore dei caratteri del form x il login?

Mi serve x adattare il form al sito...

Penso che bisogna modificare i tag echo che ho evidenziato, ma non so come... :confused:

ecco il codice della pagina x il login:

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

echo "<h1>Login</h1>\n";

// Parte A
if ($action == FALSE)
{
$user = "";
$query = @mysql_query("SELECT * FROM members ORDER BY nome ASC");
while($result = @mysql_fetch_array($query))
{
$user .= "<option value=\"" . $result[0] . "\">" . $result[1] . "</option>\n";
}

echo "<form action=\"./login.php\" method=\"post\">\n";
echo "<table width=\"100%\" border=\"0\">\n";
echo "<tr>\n";
echo "<td width=\"8%\"><strong>Username</strong></td>\n";
echo "<td width=\"92%\">\n";
echo "<select name=\"user\">\n";
echo "<option>Seleziona...</option>\n";
echo $user;
echo "</select>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><strong>Password</strong></td>\n";
echo "<td><input type=\"password\" name=\"pass\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan=\"2\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"login\">\n";
echo "<input type=\"submit\" value=\" Login! \">\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</form>\n";
}

// Parte B
else
{
if ($user == TRUE && $pass == TRUE)
{
$query = @mysql_query("SELECT * FROM members WHERE id = $user");
$result = @mysql_fetch_array($query);
if ($pass == $result[2])
{

@setcookie("logged");
echo "Ok!<br>\n";
echo "Login effettuato correttamente!";
echo "<a href=\"./privata.php\">Entra nella sezione privata!</a>";

}
else
{
echo "Errore!<br>Password errata!";
}
}
else
{
echo "Errore!<br>Non hai compilato tutti i campi obbligatori.";
}
}

@mysql_close();
?>
 
crea degli stili, tipo

.style3 {
color: #135AC2;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
}

e poi inserisci

<span class="style3">TUO TESTO</span>
 

Discussioni simili