yada:
if (isset($_POST['submit']))
{
    // Gönder butonuna basılmışsa...
}
else
{
   echo 'FORM KODLARI';
}