Here is the html code (comment.html)
***** PLEASE USE THE CODE TAG WHEN POSTING *****
Code: Select all
<html>
<body>
<form action="post.php" method="post">
First Name:
<input type ="text" name="firstname"/>
 
Last Name:
<input type ="text" name="lastname"/>
<br/>
<br/><dd/>
Comments orSuggestions:
<br/><dd/>
<textarea name="comment" rows="10" cols="50"></textarea>
</textarea>
</form>
</body>
</html>Code: Select all
<?php
$firstname=$_GET['firstname'];
$lastname=$_GET['lastname'];
$comment=$_GET['comment'];
echo $firstname;
echo "&4nbsp; $lastname";
echo ":";
echo " $comment";
?>