In a textbook on PHP 4 I am advised that the PHP Script engine will create a String from the suffix of the URL sent to a .php page from a GET instruction.( in this case "?Author=whoever")
The example given is as follows:
First Page:
<html>
<head></head>
<body>
<form method="get" action="text.php">
Who is your favourite author?
<input name="Author" type="text">
</br>
</br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Second page (text.php) :
<html>
<head></head>
<body>
Your favourite author is :
<?php
echo $Author ;
?>
</body>
</html>
The output is a disappointing "Your favourite author is :" and nothing more.
Is the book wrong, or perhaps PHP 5, which I am using, no longer functions in this way?
The example given is as follows:
First Page:
<html>
<head></head>
<body>
<form method="get" action="text.php">
Who is your favourite author?
<input name="Author" type="text">
</br>
</br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Second page (text.php) :
<html>
<head></head>
<body>
Your favourite author is :
<?php
echo $Author ;
?>
</body>
</html>
The output is a disappointing "Your favourite author is :" and nothing more.
Is the book wrong, or perhaps PHP 5, which I am using, no longer functions in this way?