![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)
<html>
<head>
<title>
</title>
</head>
<body>
<center>
<h1>Ventas ¡On Line!</h1><br>
<h3>Nuevo registro</h3><br>
<hr>
<form name='form1' method='POST' action='nuevo_anuario.php'>
<table>
<tr bgcolor='green'>
<td colspan='3' align='left'><font color='white' size='4'>Informacion a Registrar</font></td>
</tr>
<tr>
<td align='right'>Codigo ID</td>
<td align='left'><input type='textfield' name='txtcodbarras'>
<?php
if(isset($_POST['txtcodbarras'])==true){
include('cn_conexion.php');
mysql_select_db('ginda',$conexion);
$campo=$_POST['txtcodbarras'];
$consulta=mysql_query("select ID_ANUARIOS from anuarios where ID_ANUARIOS='".$campo."'");
$resultado=mysql_fetch_assoc($consulta);
$acumulador=$resultado[0];
if ($campo == $acumulador)
{
echo "edgar existe";
} else {
echo "No Existen registros";
}
}
?>
</tr>
<tr>
<td align='right'>Titulo del libro</td>
<td align='left'><input type='textfield' name='txtproducto'>
</tr>
<tr>
<td align='right'>Departamento</td>
<td align='left'><input type='textfield' name='txtdescripcion'>
</tr>
<tr>
<td colspan='2' align='center'><input type='submit' value='Registrar Articulo'><a href='ginda.php'>[Volver]</a>
</tr>
<tr bgcolor='green'>
<td colspan='2'> &n bsp;
</tr>
</table>
</form>
<hr>
<font face='tahoma' size='1'>WebSite elaborada por:Bautista Apari.</font></center>
<body>
</html>