PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
$login = 'marcelo';
$senha = 'olandim';
// use &&, not &
if ($_POST['name']==$login && $_POST['password']==$senha){
// session_start(), not SESSION_start()
session_start();
$_SESSION['validate'] = 1;
header ("location: http://tange.com.br/alvo.php");
exit; // put a semi-colon ';' at the end of every command
} else {
header ("location: http://tange.com.br/denovo.html");
exit; // put a semi-colon ';' at the end of every command
}
?>
A Parse Error means you are missing something that PHP considers vital. Usually it is a semi-colon (;) or a brace ({}) that you forgot.