I'm not sure if this is an issue with WAMP but I have been having issues with php variables not being saved. Here is an example:
Works:
<?php
$x = "Hellow Wolrd!";
echo $x;
?>
Hellow Wolrd!
Doesn't Work:
<?php
$x = "Hellow Wolrd!";
?>
<html>
<body>
<?php echo $x;?>
</body>
</html>