php check if record in mysql get all data else show empty form
<p>Need help i need to do simple php form that check record in mysql 
how can i do to hide other form before check the record exist or not ? 
user only can enter email and check exist or not ,if exist show form at bottom with all record and if user enter an email and record not exist ,show empty form at bottom .
how to do this in a same page ?</p>
