I'm having the same message "Warning: Cannot modify header information"
here is the souce code:
<?php
function REDIRECT()
{
// function begins here
$username= $POST[formusername];
$password= $POST[formpassword];
// check
if(strtolower($username== "test") && strtolower($password)=="123")
{
Header ("Location: images");
}
else
{
echo "Wrong Password";
}
}
REDIRECT();
?>