Originariamente inviato da Samleo
Riposti il codice che ti da quegli errori?
login.php
Codice PHP:
<?php
session_start();
ob_start();
$_SESSION['username1'] = $_POST['username'];
$_SESSION['password1'] = $_POST['password'];
$_SESSION['NumeroPagine'] = 1;
?>
<!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-Language" content="it" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Senza nome 1</title>
<style type="text/css">
.style1 {
text-align: center;
}
</style>
</head>
<body style="color: #FFFFFF; background-color: #000000">
<div class="style1">
<div class="style1">
<p class="style1">[img]2.png[/img]</p>
</div>
</div>
<form action = "verifica.php" method="post">
<div class="style1">
<input type = "submit" VALUE = "Accedi all'area riservata">
</div>
</form>
</body>
</html>
verifica.php
Codice PHP:
<?php
session_start();
ob_start();
$_SESSION['NumeroPagine'] += 1;
if($_SESSION['username1'] == "root" && $_SESSION['password1'] == "admin")
{ $url = "fd8287a9ccd43u8geht3gewy/";
header("Location: $url");
}
else {
$url = "error.php";
header("Location: $url");
}
?>