A very basic "Comments" field
Posted by: amardeep33
Posted on: 2009-01-14 20:32:00
Hello.
I'm trying to make a basic "Comments" page where users can submit comments along with their name and email. I have code which creates the fields for the text, but I'm not sure how to actually store the comments I receive in a separate text file/html file/ anything.
My code so far (which I stole from some other site because I don't actually know how to code yet) is:
<body>
<form action='comments.php' method='get'>
<div id='commentform'>
<table>
<tr><td><label for='name'>Name and Email(optional)</label></td><td><input type='text' id='name' name='name' size='35' value='' /></td></tr>
<<tr><td><label for='comments'>Comments</label></td><td><textarea id='comments' name='comments' cols='50' rows='8'>
</table>
<input type='submit' name='submit' value='Submit'/>
</div>
</form>
</body>
What should I add in order for the comments to be stored in a file. Is the code I already have completely wrong/not going to work?♠
Any help is greatly appreciated.
Thanks.
Edited by amardeep33 on 01/14/09 08:33 PM (server time).