simple post question i think
Posted: Sat Apr 26, 2003 6:11 pm
I'm trying some thing a little bit different. I have made my form for posting new information. Basic code for the form:
<form action="index.php" method="POST">
Input News: <input type="text" name="news" />
Input your forum name: <input type="text" name="posted" />
<input type="submit">
</form>
Now in the index.php I've input this string of code:
<?php echo $_POST["news"]; ?>
<?php echo $_POST["posted"]; ?>
I'm sure that i'm probably just overlooking something extremely simple, but obviously once you refresh the page, or go back to it through the browser, anything that you've entered has been erased. How can I make what I enter in the form stay/save onto the index.php?
<form action="index.php" method="POST">
Input News: <input type="text" name="news" />
Input your forum name: <input type="text" name="posted" />
<input type="submit">
</form>
Now in the index.php I've input this string of code:
<?php echo $_POST["news"]; ?>
<?php echo $_POST["posted"]; ?>
I'm sure that i'm probably just overlooking something extremely simple, but obviously once you refresh the page, or go back to it through the browser, anything that you've entered has been erased. How can I make what I enter in the form stay/save onto the index.php?