Ciao,
ho un form per convalidare una password:
<form method="post" action="member.php">
ecc ecc
Io vorrei che questa pagina member.php venisse aperta in una nuova finestra che ha delle caratteristiche ben precise.
IO pensavo a un javascript classico del tipo
<script>
function apri(url)
{
window.open(url,""," top=100,left=200,width=550,height=350,sc
rollbars=yes")
}
</script>
Solo che non so come metterlo nel form.
Chi mi aiuta?
ah dimenticavo, il file member.php non è una pagina ma solo un codice per verificare la pass:
<?
// set variables
$errorpage = "http://www.miosito.com/error.htm";
$combine = $username . $password;
// In the form, if surfer puts in User1 for the username and One for the password:
if(strstr($combine,"mia_password")) {
// they get directed to this page:
include ("pagina_protetta.htm");
// Wrong usernmae/password combo, they get directed to a custom error page:
} else { Header("Location: $errorpage");
exit; }
?>
help plz