Ver Mensaje Individual
  #7 (permalink)  
Antiguo 12/07/2010, 10:03
Avatar de Javiera_tierna
Javiera_tierna
 
Fecha de Ingreso: marzo-2010
Mensajes: 55
Antigüedad: 14 años
Puntos: 0
Exclamación Respuesta: capturar el valor de una caja de texto y multiplicarlo

Necesito ayudita pliss:

no hace nada.....

<head>

<?php
$txt_p60 = $_POST['txt_p60'];
$txt_cant = $_POST['txt_cant'];
?>
<?php
$txt_p60 = $_POST["txt_cant"] * 2;
?>

</head>

.................................................. ...............

<body>

<!-- ESTA ES LA CAJA DE DONDE CAPTURO EL VALOR INGRESADO -->

<input name="txt_cant" type="text" id="txt_cant" size="1"/>



<!-- ESTA ES LA CAJA DE DONDE ARROJA EL VALOR INGRESO MULTIPLICADO POR 2 -->

<input name="txt_p60" type="text" id="txt_p60" size='1' value="<?php echo $txt_p60 ?>"/>



<!-- DEFINI LAS VARIABLES YA QUE EL EASYPHP, ME RECLAMA POR NO TENER ESAS DEFINIDAS,, AUN ASI SIGUE APARECIONDO ESTO:


Notice: Undefined index: txt_p60 in c:\program files\easyphp1-8\www\proyecto\prueba60.php on line 8

Notice: Undefined index: txt_cant in c:\program files\easyphp1-8\www\proyecto\prueba60.php on line 9

Notice: Undefined index: txt_cant in c:\program files\easyphp1-8\www\proyecto\prueba60.php on line 12

-->

aYUDA PLISSS.. OSCAR.




</body>