confused about forms
Posted: Tue Mar 18, 2008 12:22 pm
I have the following code, but when I click submit, I am confused as to where the information is being sent, and how I go about getting it to display it.
Code: Select all
<html>
<body>
<FORM action="E:\Senior Project\comment.html" 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>
<input type = "submit" value="submit">
</form>
<?php
$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];
$comment=$_POST['comment'];
echo $firstname.' '.$lastname.':'.' '.$comment;
?>
</body>
</html>