Ti posto parte il resto del form e parte del file includez.php (file molto lungo)
La cosa più strana è che questo form funzionava benissimo...poi ho editato la pagina e temo di aver cancellato qualcosa.
Grazie ancora per l'aiuto.
form:
codice:
<?
include("../includez.php");
if(isset($username)&&isset($password)){
if($username=='admin'){
}
elseif(user_exists($username)){
}
else{
echo "Invalid username and/or password
";
}
}
?>
<link href="style.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript1.1">
<!--
function popitup(url)
{
newwindow=window.open(url,'name','height=200,width=300');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
<body background="bg.jpg">
<form name="form1" method="post" action="">
<table width="50%" border="0">
<tr>
<td width="28%">Username : </td>
<td width="72%"><input type="text" name="username"></td>
</tr>
<tr>
<td>Password : </td>
<td><input type="text" name="password"></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
</form>
</body>
includez.php :
codice:
<?
$LOCAL=0;
if(!$LOCAL){
$BASE="public_html/";
$DATA="datamodel";
}
else{
$BASE="/progra~1/apache~1/apache/htdocs/model/";
$DATA="/";
}
$BASEURL="/model/";
$ADMIN_USER=mio user';
$ADMIN_PASSWD='mia password';