Vorrei che deste una controllata a questi codici per il login... purtroppo non capisco dove inserire la password....
index.php
Codice HTML:<html>
<head>
<meta name="GENERATOR" content="AlterVista - Creazione pagine 1.2">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Pette</title>
<style type="text/css"><!--
.titolo {
font-family: "Maiandra GD";
font-size: 70pt;
font-style: italic;
font-weight: bold;
};
.testo {
font-family: "Arial";
font-size: 12pt;
text-decoration: underline;
font-style: italic;
font-weight: bold;
}
--></style>
</head>
<body><body bgcolor="black"><body text="white">
<p align="center"><a target='_blank' title='Pettepedia'><img src='http://pettepedia.altervista.org/Pettepedia.gif' border='0'/></a></p>
<br>
<br>
<br>
<br>
<p align="center">
<form id="accesso" method="post" action="controllo.php">
<fieldset>
username:
<input name="username" class="text" value="username" type="text" id="username" />
password:
<input name="password" class="text" value="password" type="password" id="password" />
<input class="submit" title="invia username e password per controllo autanticita'" type="submit" name="action" value="Invia" />
</fieldset>
</form>
</p>
controllo.php
Codice PHP:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CONTROLLO</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
if((!isSet($username)) || (!isSet($password)))
{
echo
"
<p align='center'>E' necessario inserire username e password per accedere ai contenuti della pagina!</p>
";
}
else if(($username==Utente)&&($password==Trololol))
{
echo
"
<p align='center'>
I dati inseriti sono corretti! Benvenuto Utente!</p>
ENTRA</p>
</p>
";
}
else
{
echo
"
<p align='center'>L'username e la password inseriti non sono corretti. Prova di nuovo!</p>
";
}
?>
</body>
</html>

