Why this don't work

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!

Moderator: General Moderators

Post Reply
molandim
Forum Newbie
Posts: 19
Joined: Thu Feb 20, 2003 11:33 am
Location: Brazil
Contact:

Why this don't work

Post 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

?>
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

You forgot the " ; " after

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