php - How to keep form data even after submiting not to dispear -


in this

<form method="post" action=""> <input type="text" class="field small-field" name="tex1" /> <input type="submit" value="search" name="search"/> <input type="submit" value="print"  name="print"/> </form> 

after submit form, page refreshes , data inside input texts gets blank

is possible keep data after submit?

regards.

try echo, ever variable named input.

<form method="post" action="">     <input type="text" class="field small-field" name="tex1" value="<?php echo $_post['tex1'];?>" />     <input type="submit" value="search" name="search"/>     <input type="submit" value="print"  name="print"/> </form> 

Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -