I'm a novice and trying to create a very simple password script, but getting a parse error on line 21 and can't see what the problem is. Can anyone here see the problem?
<html>
<head>
</head>
<body>
<?
$login_form = "<form name='login' action='$PHP_SELF' method='post'>
<input name='op' type='hidden' value='ds'>
User Name: <input name='user'><br>
Password: <input type='password' name='pwd'><br><br>
<input type='submit'></form>";
if ($op != "ds"
{
echo "$login_form";
}
else {
if ($user=="jones" && $pwd == "jones"
{
header("Location: }
}
else{
echo "Login Information is Not Correct - Please Login Again";
echo "$login_form";
}
?>
</body>
</html>
Thanks a bunch for any hints, subtle or otherwise.
<html>
<head>
</head>
<body>
<?
$login_form = "<form name='login' action='$PHP_SELF' method='post'>
<input name='op' type='hidden' value='ds'>
User Name: <input name='user'><br>
Password: <input type='password' name='pwd'><br><br>
<input type='submit'></form>";
if ($op != "ds"

echo "$login_form";
}
else {
if ($user=="jones" && $pwd == "jones"

header("Location: }
}
else{
echo "Login Information is Not Correct - Please Login Again";
echo "$login_form";
}
?>
</body>
</html>
Thanks a bunch for any hints, subtle or otherwise.
