Hello guys I'm trying to do something very basic but can't figure it out so far. I have a form and just want to display all the user's comments one after the other in the same page once they have submitted them. It does show a user's comment however when I refresh the page it's gone, I want to keep the comment even once the page has been refreshed and add other comments on top of that. Here's my code:
<form action = "dhegdheg.php" method = "POST">
Name: <br /> <input type = "text" name = "name" /> <br />
Comment: <br /> <textarea rows = "5" cols = "40" name = "comment"> </textarea> <br />
<input type = "submit" name = "submit" />
</form>
<?php
echo "<b id = 'comments'>".$_POST['name']."</b>"."<br />";
echo $_POST['comment'];
?>
As you can see it's a pretty basic code and i'd like to keep it that way if possible.
Cheers lads