<html><body>
 <?php
   require("teatekonf.php");
   if(isSet($teatesisu)){
    mysql_connect($masin, $kasutajanimi, $parool);
    mysql_select_db($baasinimi);
    $korras=mysql_query("INSERT INTO teated2 (nimi, teade) ".
      "values('$nimi', '$teatesisu')");   
    if($korras){
     echo "Sisestamine ġnnestus";
    } else {
     echo "Sisestamine ebaġnnestus: " . mysql_error();
    }
    mysql_close();
   }
 ?>
 <form>
  <table>
   <tr>
    <td>Nimi:   </td><td><input type="text" name="nimi" size="50"></td>
   </tr><tr>
    <td>Teade:  </td><td><input type="text" name="teatesisu" size="50"></td>
   </tr><tr>
    <td colspan="2" align="center"><input type="submit" value=" Saada "></td>
   </tr>
  </table>
 </form>
</body></html>