Basically, I want users to go to the site, enter their message and name, and the results should be displayed on one page, and when another user comes back, the results from the previous user should be there and everything that comes should just be added to list.
I currently have:
<form id="form1" name="form1" method="post" action="">
<label>Please type in a message
<input type="text" name="msg" id="msg" />
</label>
<label>and your name
<input type="text" name="pin" id="name" />
</label>
<p>
<label>Submit
<input type="submit" name="submit" id="submit" value="Submit" />
</label>
</p>
</form>
<?php
$msg = $_POST[msg];
$name = $_POST[name];
?>
<br />
<?php echo "$msg"?>
<?php echo "$name"?>
but when another entry is entered, the previous one is lost ...
early
source
share