Page 1 of 1

Why this don't work

Posted: Wed Feb 26, 2003 1:58 pm
by molandim

Code: Select all

<?php 

$name2 = 'marcelo' 
$pass2 = 'olandim' 


if ($_POST['name'] == $name2 & $_POST['pass'] == $pass2){ 

SESSION_start(); 

$_SESSION['validate'] = 1; 

header ("location: http://tange.com.br/teste.php"); 
exit 
} 
else{ 
header ("location: http://tange.com.br/denovo.html"); 
exit 


?>
Gives : Parse error: parse error in /home/httpd/htdocs/tangecbr/check.php on line 4

?>

Posted: Wed Feb 26, 2003 2:11 pm
by McGruff
You forgot the " ; " after

$name2 = 'marcelo' ...and...
$pass2 = 'olandim'