I can’t see why this simple script wont work?
PS I’m very new to PHP
#form.html
<html>
<head>
</head>
<body>
<form action=”form.php” method=”post”>
<p>Name: <input type=”text” name=”name” size=”20″ maxlength=”50″ /></p>
<input type=”submit” name=”submit” value=”submit” />
</form>
</body>
</html>
#form.php
<html>
<head>
<title>guestbook</title>
</head>
<body>
<?php
echo “Thank you $_POST[‘name’] for your comment!”;
?>
</body>
</html>
I get this:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/gina/public_html/guest/form.php on line 7
Line 7 being the line beginning echo
Thank you! ?