changing the value of variables in PHP
Hi there. I am trying to create a simple PHP program using the following code:
$myfavmovie = urlencode(Madagascar);
echo "<a href='moviesite.php?favmovie=$myfavmovie'>";
echo "Click here to see information about my favorite movie!";
I have a page that this is linked to - which seems to work fine, but when I change the value of "$myfavmovie" to anything else, "Madagascar" continues to show up. Are variables completely static within a page such that I cannot change them once I have assigned a value to it? That doesn't seem to me to be correct...
Here is the code on the subsequent page to which this is linked in case that matters...
echo "My favorite movie is ";
I am much obliged.