| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 
 | <?php	  
if(isset($_POST['submit']) && ($_POST['submit']=='Enregistrer'))include('connect.inc.php');
	  mysql_open();
	  $insertfonction="INSERT INTO fonction(designation, salaire) VALUES('$lib','$salaire');";
	  $resultfonction=@mysql_query($insertfonction);
	  mysql_close();
	  $lib='';
	  $salaire='';
	 }
}
?>
<form action="fonction.php" method="POST" name="" id="">
<table width="44%">
  <tr><td><fieldset><legend><span class="Style1">Fonction </span></legend>
	<table width="440" height="125" border="0" >
           <tr>
                     <td width="129" height="24">Désignation :</td>
             <td width="240"><input type="text" name="txtlib" size="40" maxlength="60" value="<?php echo $lib; ?>" /></td>
           </tr>
           <tr>
                     <td height="30">Salaire correspondant :</td>
                     <td><input type="text" name="txtsalaire" size="20" maxlength="60" value="<?php echo $salaire; ?>" />
                     FCFA</td>
           </tr>
		   <tr>
		     <td height="26"> </td>
		     <td><div>
		       <input type="submit" name="submit" value="Enregistrer" />
		     </div></td>
	      </tr>
	</table>
  </fieldset></td></tr>
  </table>
</form>
 
<?php | 
Partager