Ver Mensaje Individual
  #12 (permalink)  
Antiguo 20/08/2007, 09:56
extrem_bcn
 
Fecha de Ingreso: julio-2007
Ubicación: Delante del PC (Barcelona
Mensajes: 157
Antigüedad: 16 años, 10 meses
Puntos: 2
Re: Como una hacer suma?

Este código funciona seguro. Necesitas dos archivos, el principal que puedes llamarlo como quieras y el archivo donde se imprimirá el nombre que se ha de llamar XR7T.php (tú lo tneias así)


archiv.php

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>
<body>
<form method="POST" action="XR7T.php">
 <div align="center"><span class="ThmFgFrameTitle">Pon aqui nonmbre : </span>
<input type="text" name="nombre">

<input name="submit" type="submit" value="Enter">
</div>
</form>
</body>
</html>

En el otro archivo (XR7T.php) que es la página donde se imprimirá el nombre has de copiar el siguiente código:

Código PHP:
<?php 
if(isset($_POST['nombre'])) {
    
$nombre "*".$_POST['nombre'];
    echo 
$nombre
    }
?>

FUNCIONA COMO QUE ME LLAMO MANOLO ESCOBAR xDD!