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

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -