Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
106
rated 0 times [  111] [ 5]  / answers: 1 / hits: 130784  / 14 Years ago, fri, march 4, 2011, 12:00:00

I am trying to find what the easiest way to keep form values after post. I am really trying to have to keep from learning ajax right this second for the one form, Plus I am not sure how hard it would be to implement ajax into my already existing google map page. So I am trying to find a way to retain the values of two date fields after submit has been pushed


More From » php

 Answers
33

If you are looking to just repopulate the fields with the values that were posted in them, then just echo the post value back into the field, like so:



<input type=text name=myField1 value=<?php echo isset($_POST['myField1']) ? $_POST['myField1'] : '' ?> />

[#93428] Thursday, March 3, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alessandrol

Total Points: 286
Total Questions: 107
Total Answers: 109

Location: Uzbekistan
Member since Sat, Feb 27, 2021
3 Years ago
;