Come mai questo script che ho sempre usato senza problemi, ora si è messo a fare i capricci? Quando questa pagina è linkata senza passare dallo script, si visualizza regolarmente, mentre invece se il link passa per la pagina contenente lo script, funziona solo a metà: non si possono vedere le immagini!(login+pwd = milena + mondini)
Essendo lo script molto semplice ed avendo usato lo stesso sistema nello stesso sito altre 3 volte senza problemi, e avendole ormai provate tutte, non mi resta che affidarmi a qualche buonanima di questo forum.
Vi riporto sia lo script che il file php, ma non credo centrino nulla essendo identiche anche le posizioni dei files e delle directory ad es qui e qui e qui... è come se avessi esaurito un bonus di pagine... forse che c'è un limite di qualche tipo?(il server è su Aruba, contratto minimo senza database).
Lo script che ho incollato in tutte le pagine con le password è il seguente:
<form method="post" action="member_body.php">
<p align="center">nome
<input type="text" name="username">
</p>
<p align="center">cognome
<input type="text" name="password">
</p>
<p align="center">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</p>
</form>
questo invece è il file member_body.php:
<?
// set variables
$errorpage = "error_body.htm";
$combine = $username . $password;
// In the form, if surfer puts in User1 for the username and One for the password:
if(strstr($combine,"milenamondini")) {
// they get directed to this page:
include ("bodini/bodini.htm");
// In the form, if surfer puts in User1 for the username and One for the password:
} else if(strstr($combine,"MILENAMONDINI")) {
// they get directed to this page:
include ("bodini/bodini.htm");
// In the form, if surfer puts in User1 for the username and One for the password:
} else if(strstr($combine,"MilenaMondini")) {
// they get directed to this page:
include ("bodini/bodini.htm");
// Wrong usernmae/password combo, they get directed to a custom error page:
} else { Header("Location: $errorpage");
exit; }
?>