my html form doesn't work with my php code : if i make insert_teacher('bla bla','bla bla','dqsd') in php file , but when i want to make it with html form it doesn't show me anything, and nothing inserted in my db
====
if i make insert_teacher('bla bla','bla bla','dqsd') in php file , but when i want to make it with html form it doesn't show me anything, and nothing inserted in my db
===
if i make insert_teacher('bla bla','bla bla','dqsd') in php file , but when i want to make it with html form it doesn't show me anything, and nothing inserted in my db

    

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->

        

    <?php
      include_once("resources/functions.php");
    echo 1;
      if(isset($_POST['submit']))
      {
          $name=$_POST['name'];
          $exp=$_POST['exp'];
          $sub=$_POST['sub'];
          
             $insert=insert_teacher($name,$exp,'dqsd');// return 1 or 0
              echo $insert;
                  
              
                    
      }

    ?>
    <html>
    <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <link rel="stylesheet" type="text/css" href="css/style.css">
    </head>
    <body>

    <header>
      <h1>City Gallery</h1>
    </header>
        
    <ul class="sidenav">
      <li><a  href="index.php">Home</a></li>
      <li><a href="#news">News</a></li>
      <li><a href="#contact">Contact</a></li>
      <li><a class="active" href="setup_teachers.php">Teachers Section</a></li>
    </ul>

    <div class="content">
    <h3 class="warning"><?php if(isset($b)) echo $b; ?></h3> 
    <h3>Adding teachers information</h3>

    <div>
      <form action="" method="POST" >
        <label for="fname">FullName</label>
        <input type="text" id="fname" name="name">

        <label for="lname">Experience</label>
        <input type="text" id="lname" name="exp">

        <label for="subject">Subject</label>
        <select id="country" name="sub">
          <option value="physics">physique</option>
          <option value="maths">mathematique</option>
          <option value="english">Anglais</option>
        </select>
        <input type="submit">
      </form>
    </div>
    </div>
    </body>
    </html>


<!-- end snippet -->


   
    



