Salve,
ho questo codice:
Codice PHP:
<div>
<ul>
<form method="POST">
<table>
<tr><td>Username : </td><td><input type="text" name="user" /></td></tr>
<tr><td>Password : </td><td><input type="password" name="password" /></td></tr>
<tr><td><input type="submit" name="action" value="Login" /></td></tr>
</table>
</form>[/list]
<?php
$chkusr="mioname";
$chkpas="miapassword";
if (isset($_POST['action']) and
isset($_POST['user']) and
isset($_POST['password']) and
$_POST['user']==$chkusr and
$_POST['password']==$chkpas)
//header ("Location:[url]http://www.ulr.com[/url]");
header ("Location:/index.php?mnuItm=modify"); //
?>
</div>
ottengo questo errore:
"Warning: Cannot modify header information - headers already sent by (output started at D:\WebDesign Test\index.php:132) in D:\WebDesign Test\resources\login.php on line 21"
Ho provato ad inserire anche un link sbagliato ma non cambia nulla...
Voglio semplicemente andare in "/index.php?mnuItm=modify" se username e password sono giusti.
Cosa può essere?
Grazie