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
molandim
Forum Newbie
Posts: 19 Joined: Thu Feb 20, 2003 11:33 am
Location: Brazil
Contact:
Post
by molandim » Wed Feb 26, 2003 1:58 pm
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 » Wed Feb 26, 2003 2:11 pm
You forgot the " ; " after
$name2 = 'marcelo' ...and...
$pass2 = 'olandim'