Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/05/2007, 10:37
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 21 años, 4 meses
Puntos: 11
Re: Generar un campo...

Código PHP:
<?php
   
...
  
$campoaleatorio=substr(campo1,0,2).substr(campo2,-3);

   ...
?>
<input type="text" name="campo3" value="<?php echo $campoaleatorio;?>">