Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/09/2006, 12:51
Avatar de alexsaiz
alexsaiz
 
Fecha de Ingreso: agosto-2006
Ubicación: Madrid
Mensajes: 85
Antigüedad: 17 años, 8 meses
Puntos: 0
Ya he encontrado el error. Al final debe ser así:

Código PHP:
<input name="email" type="text" class="<?php if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$"$email)) {echo "inputbox-normal";} elseif (isset($_POST['email']) && empty($_POST['email'])) {echo "inputbox-rojo";} else {
  echo 
"inputbox-rojo";
  }
?>" id="email" value="<? 
if(isset($email)){echo "$email";}?>" size="15" maxlength="30" />