php - Show table only after doing a search -


i'm working on little project , wanted table results show after hit button / make search...

here link http://img.needforgaming.x10.mx/procurar.php goal hide table before making search.

use isset() check if form submitted.

if(isset($_post['btn_procurar'])){  //display form  } 

an alternative use empty():

if (!empty($_post)) {  //display form      } 

hope helps!


Comments