title: when I submit the form no action happen
body: <p>sorry if my question not scene, but when I submit my form no action happen and even no error 
  appear and I don't know why so please can you help me !!</p>
  
  <p>here my <code>php</code> code  </p>
  
  <pre><code>&lt;?php 
  
  if (isset ($_POST["submitted"]))
  {
      if (isset($_POST["proName"]))
      {
          $namepro=$_POST["proName"];
      }
  
  
    $filename=  $_FILES["imgfile"]["name"];
      if ((($_FILES["imgfile"]["type"] == "image/gif")|| ($_FILES["imgfile"]["type"] == "image/jpeg") || ($_FILES["imgfile"]["type"] == "image/png")  ||
       ($_FILES["imgfile"]["type"] == "image/pjpeg")) &amp;&amp; ($_FILES["imgfile"]["size"] &lt; 200000))
    {
      if(file_exists($_FILES["imgfile"]["name"]))
      {
        echo "File name exists.";
      }
      else
      {
        move_uploaded_file($_FILES["imgfile"]["tmp_name"],"uploads/$filename");
      }
    }
    else
    {
      echo "invalid file.";
    }
  
      if (isset($_POST["selectcat"]))
      {
          $selectpro=$_POST["selectcat"];
      }
      if (isset($_POST["shortDescr"]))
      {
          $desc=$_POST["shortDescr"];
      }
      else
      {$desc=NULL;}
  
          if (isset($_POST["cost"]))
      {
          $cost=$_POST["cost"];
      }
         else
          {$cost=NULL;}
  
          if (isset($_POST["product"]))
      {
          $product=$_POST["product"];
      }
      else
      {$product=NULL;}
  
          if (isset($_POST["marketing"]))
      {
          $mark=$_POST["marketing"];
      }
      else
      {$mark=NULL;}
  
  
          if (isset($_POST["power"]))
      {
          $p=$_POST["power"];
      }
      else
      {$p=NULL;}
  
  
          if (isset($_POST["risk"]))
      {
          $risk=$_POST["risk"];
      }
      else
      {$risk=NULL;}
          if (isset($_POST["compititiors"]))
      {
          $comp=$_POST["compititiors"];
      }
      else
      {$comp=NULL;}
      $teamWork='';
      if (isset($_POST["team1"]))
      {
          $team=$_POST["team1"];
      }
      if (isset($_POST["s"]))
      {
          $s=$_POST["s"];
          $teamWork=$team."\t\t".$s;
  
      }
  
      if (isset($_POST["team2"]))
      {
          $team2=$_POST["team2"];
          $teamWork=$team."\t\t".$s."&lt;br&gt;".$team2;
      }
      else
      {$team2=NULL;}
      if (isset($_POST["s2"]))
      {
          $s2=$_POST["s2"];
          $teamWork=$team."\t\t".$s."&lt;br&gt;".$team2."\t\t".$s2;
      }
      else
      {$s2=NULL;}
  
      if (isset($_POST["team3"]))
      {
          $team3=$_POST["team3"];
          $teamWork=$team."\t\t".$s."&lt;br&gt;".$team2."\t\t".$s2."&lt;br&gt;".$team3."\t\t";
      }
      else
      {$team3=NULL;}
  
      if (isset($_POST["s3"]))
      {
          $s3=$_POST["s3"];
          $teamWork=$team."\t\t".$s."&lt;br&gt;".$team2."\t\t".$s2."&lt;br&gt;".$team3."\t\t".$s3;
      }
      else
      {$s3=NULL;}
  
  
      $dbc = mysqli_connect("localhost", "root", "", "gettogether");
  
       $q = "INSERT INTO project (projectname,projecttype,personid,imgProject,status,createDate) VALUES 
       ('$namepro','$selectpro',1,'uploads/$filename','unsubmitted',now())";
  
  
        $r = @mysqli_query ($dbc, $q);
          if ($r ) {
      $sql="select projectid from project where personid=1 order by createDate desc";
      $qur=mysql_query($sql) or die(mysql_error());
      if($qur){
     $row=mysql_fetch_array($qur);
     $proID=$row['projectid'];
         $result2 = "INSERT INTO plan (projectid,description,products,marketingplan,financialplan,strenght,risk,team,competitor) VALUES 
        ($proID,'$desc',$product','$mark','$cost','$p','$risk','teamWork','$comp')";
        $result=@mysqli_query ($dbc,$result2) or die(mysql_error());
        if ($result)
        {
        header( "Location:project.php" );
        }
        else
        {
          echo "error";  
        }
   }
   }
   else 
   { echo" &lt;script&gt;
      alert('try again');
              &lt;/script&gt;
      ";
   }      
  }
  
  ?&gt;
  </code></pre>
  
  <p><em><strong>Note :</em></strong></p>
  
  <p>in my Database I have 2 table one called <code>plan</code> and another called <code>project</code>
  and projectid is a foreign  key in plan table </p>