ok miren lo del campo obligatorio funciona miren el codigo:
<?
function Conectarse()
{
if (!($link=mysql_connect("localhost"," ;usuario","pass")))
{
echo "Error conectando a la base de datos.";
exit();
}
if (!mysql_select_db("nombre_db",$link))
{
echo "Error seleccionando la base de datos.";
exit();
}
return $link;
}
$link=Conectarse();
mysql_query("insert gente (nombre,pais) values ('$nombre','$pais')",$link);
echo mysql_error();
?>
<td width="60%" height="348" bgcolor="#FFFFFF" valign="top"><IMG SRC="/imagenes/int_sup_izq.gif" WIDTH="25" HEIGHT="25" BORDER=0>&nbsp;
<center><center>
<font face="arial" zise="2"> <b><font face="Geneva, Arial, Helvetica, san-serif" size="4">los
datos ingrezados son</font></b>:</font><br>
<font face="arial" zise="2"> Nombre : <? echo $nombre ?></font><br>
<font face="arial" zise="2"> País : <? echo $pais ?><BR><BR>
<?
if (empty($nombre)){
echo "<b>No has puesto tu nombre..<b><br>";
}
if (empty($pais)){
echo "<b>No has puesto tu pais..<b><br>";
}
?></font><br>
</center>
<table width="91%" border="0" cellspacing="0" cellpadding="0" height="270">
</table>
<p>&nbsp;</p>
</center>
<p align="center"></p>
</td>
<td width="22%" bgcolor="#004382" height="348" valign="top">
<table border="0" width="100%" cellspacing="1" cellpadding="0" bgcolor="#001F3F" height="7%">
<tr>
<td width="100%" bgcolor="#004382" height="1%">&nbsp; </td>
</tr>
</table>
</td>
</tr>
Ok reconoce el campo obligatorio pero envia los datos a la DB igual que hago para que al ser obligatorios si no los llena todos no mande los campos a la DB??
<font face="Arial" size="1" color="#000000">Dacoy Chile Tu Nuevo Portal<BR><a href="http://www.casinformatico.com" target="_blank">Entrar A Dacoy</a>[/CODE]