ok this is my movie1.php file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?
session_start();
$_SESSION['username']="joe12345";
$_SESSION['authuser']=1;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<?
$myfavmovie=urlencode("The Life of Brian");
echo "<a href='http://localhost/moviesite.php?favmovie=$myfavmovie'>";
echo "Click here to see information about my favourite movie";
echo "</a>";
?>
</body>
</html>
and this is my moviesite.php file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?
session_start();
//check to see if user has logged in with a valid password
if ($_SESSION['authuser']!=1 {
echo "Sorry you cant enter the site";
exit();
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>My movie site - <? $_REQUEST['favmovie'] ?></title>
</head>
<body>
<?
echo "My favourite movie is" ;
echo $_REQUEST['favmovie'];
echo "<br>";
$movierate=5;
echo "My movie rating for this this movie is: ";
echo $movierate;
?>
</body>
</html>
I am also use Dreamweaver to do these php files and im using FireFox explorer!
http://www.uggle.com
http://www.leap2.co.uk
[email protected]
[email protected]