CorrieDeBeer
Expert Member
- Joined
- Apr 14, 2015
- Messages
- 1,569
I'm trying to teach myself PHP, but something seems to not be working
The second part is.
The first menu works fine, but the second one gives me this...

HTML:
<html>
<head>
<title> 305 Using the TextArea tag</title>
<link rel="stylesheet" type="text/css" href="css/basic_2.css" />
</head>
<body>
<h3>Using the Text Area tag</h3>
<form method="post" action="0305_Using_TextArea.php">
<p>
First Name:<br />
<input type="text" name="firstname" size="35"
</p>
<p>
Comments:<br />
<textarea name="comments" rows="8" cols="65">
</textarea>
</p>
<p>
<input type="submit" Value="Submit Information">
</p>
</form>
</body>
</html>
The second part is.
HTML:
<html>
<head>
<title> 305 Using the TextArea tag</title>
<link rel="stylesheet" type="text/css" href="css/basic_2.css" />
</head>
<?php
$firstname = S_POST['firstname']
$comments = $_POST['comments']
print "<p>You are <span class='textblue'> "$firstname" . </span> and";
print "your comments about the College are </p>"
print "<p> <span class='textblue'>. "$comments"</span></p>";
?>
</html>
The first menu works fine, but the second one gives me this...