Hi I am working my way through a book and can not get the following to work. Please can some one help me. Thanks.
The Form Page
<html>
<head>
<title>Html form</title>
</head>
<body>
<form action="handleform.php" method="post">
First Name <input type="text" name="$array[firstname]" size="20" ><br>
Last Name <input type="text" name="array[lastname]" size="40"><br>
E-Mail <input type="text" name="array[e-mail]" size="60"><br>
Comments <textarea name="array[comments]" rows="5" cols="40"></textarea><br>
<input type="submit" name="submit" value="Submit!">
</form>
</body>
</html>
The Handler Page
<html>
<head>
<title>Form Results</title>
</head>
<body>
<?php
// This page receives and handles the data generated by "form.html".
$array["name"] = $array["firstname"]."
" .$array["lastname"];
print ("Your full name is $array[name].<br>\n");
?>
</body>
</html>
The Form Page
<html>
<head>
<title>Html form</title>
</head>
<body>
<form action="handleform.php" method="post">
First Name <input type="text" name="$array[firstname]" size="20" ><br>
Last Name <input type="text" name="array[lastname]" size="40"><br>
E-Mail <input type="text" name="array[e-mail]" size="60"><br>
Comments <textarea name="array[comments]" rows="5" cols="40"></textarea><br>
<input type="submit" name="submit" value="Submit!">
</form>
</body>
</html>
The Handler Page
<html>
<head>
<title>Form Results</title>
</head>
<body>
<?php
// This page receives and handles the data generated by "form.html".
$array["name"] = $array["firstname"]."
" .$array["lastname"];
print ("Your full name is $array[name].<br>\n");
?>
</body>
</html>