Keep text in text field after submitting
I am having a issue keeping text in the text field that was previously
there after pushing submit. I am using this:
<input name="date" type="text" id="date" <?php
if(isset($_POST['date'])){echo 'value="'.$_POST['date'].'"';} ?>/>
I also have this on successful submit so that it reloads the table but
also removes whats above because it's refreshing.
echo "Succesfully added transaction. Updating table...";
echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"6\">";
No comments:
Post a Comment