Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/12/2004, 15:33
Avatar de GERMANCIN
GERMANCIN
 
Fecha de Ingreso: junio-2004
Mensajes: 151
Antigüedad: 19 años, 10 meses
Puntos: 0
Bueno Cluster gracias por responderme .... estoymuy agradecido y supongo que mi teacher nos ha enseñado del lado del servidor con php ... entonces el nos dio este codigo ....... claro hay te lo envio con el hatml y todo ... pero de igual manera no lo entiendo muy bien si me podrias ayudar .. para que yo lo tenga mas claro me ayudarias un monton ya que hoy nos toman un examen ... de antemano gracias...



<?
if ($txtaccion=="Validar")
{
if ($Nombre=="") $SERROR="Nombre invalido";
if($mail=="") $SERROR.="<br>Mail invalido";
}
?>



<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<? if (($SERROR =="")&&($txtaccion =="Validar")) { ?>
<table><tr><td>Ahora si esta todo belen</td></tr></table>
<? }
else
{ ?>
<form name="frm1" action="">
<table>
<tr>
<td> <? echo $SERROR ; ?> </td>
</tr>

<tr>
<td> Correo: </td>
<td> <input type="text" name="mail" value="<? echo $mail ?>"> </td>
</tr>


<tr>
<td> Nombre: </td>
<td> <input type="text" name="Nombre" value="<? echo $Nombre ?>"> </td>
</tr>

<tr>
<td><input name="button" type="button" onClick="frm1.txtaccion.value='Validar';frm1.submi t();" value="enviar" >
<input type="hidden" name="txtaccion">
</td>
</tr>



</table>
</form>
<? } ?>

</body>
</html>