Thanks for your help, but I have done exactly as you said and it still does'nt work.
I have copied the code exactly as it says in the book:
move1.php-<?php
$_SESSION['username']="Joe12345";
$_SESSION['authuser']=1;
?>
<HTML>
<HEAD>
<TITLE>Find my Favorite Movie!</TITLE>
</HEAD>
<BODY>
<?php
$myfavmovie=urlencode("Life of Brian");
echo "<a href='http://localhost/moviesite.php?favmovie=$myfavmovie'>";
echo "Click here to see information about my favorite movie!";
echo "</a>";
?>
</BODY>
</HTML>
Moviesite.php-<?php
$_SESSION['username']="Joe12345";
$_SESSION['authuser']=1;
?>
<HTML>
<HEAD>
<TITLE>Find my Favorite Movie!</TITLE>
</HEAD>
<BODY>
<?php
$myfavmovie=urlencode("Life of Brian");
echo "<a href='http://localhost/moviesite.php?favmovie=$myfavmovie'>";
echo "Click here to see information about my favorite movie!";
echo "</a>";
?>
</BODY>
</HTML>
I have checked register globals is off and that the php.ini file is pointing to the right temp file for sessions, which is all ok!
It is becoming a bit of a problem now because I really don't know what to do and I can't progress in the "beginning php,mysql and apache" book until I resolve this problem, as sessions are required for the examples in the book.
Wish I new what the problem is???
Many thanks
David
|