Name: Anonymous 2016-10-27 4:41
hi friends.
this is the code
<?php
session_start();
$_SESSION['username'] = $_POST['user'];
$_SESSION['userpass']=$_POST['pass'];
$_SESSION['authuser']=0;
//check username and password information
if(($_SESSION['username']=='Joe')and ($_SESSION['userpass']=='12345'))
{$_SESSION['authuser']=1;
}
else
{
echo 'Sorry, but you don\'t have permission to view this page';
exit();
}
?>
<html>
<head>
<title>Find my favorite movie</title>
</head>
<body>
<?php
$myfavmovie=urldecode('Life of Brian');
echo "<a href=\"moviesite.php?favmovie=$myfavmovie\">";
echo 'Click here to see information about my favmovie movie';
echo '</a>';
?>
</body>
</html>
this is the error
C:\xampp\kishan\htdocs\Myphp\movie1.php on line 3
this is the code
<?php
session_start();
$_SESSION['username'] = $_POST['user'];
$_SESSION['userpass']=$_POST['pass'];
$_SESSION['authuser']=0;
//check username and password information
if(($_SESSION['username']=='Joe')and ($_SESSION['userpass']=='12345'))
{$_SESSION['authuser']=1;
}
else
{
echo 'Sorry, but you don\'t have permission to view this page';
exit();
}
?>
<html>
<head>
<title>Find my favorite movie</title>
</head>
<body>
<?php
$myfavmovie=urldecode('Life of Brian');
echo "<a href=\"moviesite.php?favmovie=$myfavmovie\">";
echo 'Click here to see information about my favmovie movie';
echo '</a>';
?>
</body>
</html>
this is the error
C:\xampp\kishan\htdocs\Myphp\movie1.php on line 3