コード例 #1
0
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
      <?php 
include "menu.php";
?>
</td>
  </tr>
  <tr>
    <td align="center">
	

<?php 
if ($_REQUEST['id'] === '1') {
    $ingreso->ingresos_insertar($_REQUEST['producto'], $_REQUEST['fecha'], $_REQUEST['cantidad']);
}
if ($_REQUEST['id'] === '2') {
    $ingreso->ingresos_borrar($_REQUEST['ing_id'], $_REQUEST['pro_id'], $_REQUEST['cant']);
}
?>

	
	<form name="form1"  id="form1">
        <table width="658" border="0" align="center" cellpadding="0">
          <tr>
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr align="center">
            <td colspan="3" class="titulo">REGISTRAR INGRESOS </td>
          </tr>