I have just started the book. I am using a Linux Redhat 8.0 OS and httpd server and PHP4. My php pages work by themselves in the previous chapters but now when I have a starting html page and corresponding php page nothing happens. I am taken to the php page by the submit button but no php function results come up, only the html writing - "Who is your favourite author?" The box is empty even thought the url has the answer on the end of it. I have also gone on the next exercise and have the same non-results. Everything else works apart from the php.
I then read this forum and used a declaration script in the php code
<html>
<head></head>
<body>
Your favourite web sites are:
<?php
**$Websites=$_POST[Websites];**
echo $Websites;
?>
</body>
</html>
but my results come out like this:
Your favourite web sites are: http:// http:// http:// http:// **Websites=http:// http:// http://
http://**
(the 2 ** are not in the actually script)
In the terminal it says:
KDirWatch::removeDir can't handle '/var/www/html' - this is my root directory
Have also been told that to turn the Global Register to On is a very bad idea.
Why does it repeat itself? Why without this declaration does it not show up at all? Can you please help.
:(
