Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/05/2010, 12:44
xpitutox
 
Fecha de Ingreso: mayo-2010
Ubicación: valpo_UC
Mensajes: 34
Antigüedad: 14 años
Puntos: 0
ayuda con un tema super simple pero me supera

hola amigos soy nuevo en el foro hace un tiempo programo en php y resulta ke tengo una duda y keria ver si me pueden ayudar.

mi problema es el sgt tengo echa la pagina index la cual toma 18 datos letras y numero ahora solo los numericos tengo ke multiplicarlos por algun valor por ejemplo la variable "txtimpresion" la multiplike por "54.75" resulta ke puedo hacer ke me liste el resultado pero no ke me los multiplike porfa si me pueden ayudar se los agradeceria mucho.


Este es el Index.php

Código:
<style type="text/css">
<!--
body {
	background-color: #CCCCCC;
}
body,td,th {
	color: #000000;
}
.Estilo1 {color: #0099FF}
.Estilo2 {color: #000000}
.Estilo3 {color: #CCCCCC}
-->
</style>  <form name="form1" method="POST" action="formulario.php">
    <label><strong>Centro Costos</strong><span class="Estilo3">............</span>
    <input type="text" name="txtcostos" id="txtcostos" />
    </label>
    <strong>Nombre Solicitante	</strong>
    <label>
  <input type="text" name="txtnombre" id="txtnombre" />
  </label>
  <p><strong>Nom Trabajador<span class="Estilo3">.........</span></strong> 
    <label>
    <input type="text" name="txttrabaja" id="txttrabaja" /> 
    </label>
    <strong>Impresion B/ N</strong><span class="Estilo3">......	</span>          
    <label>
  	<input type="text" name="txtimpresion" id="txtimpresion" />
  </label>
  </p>
  <p><strong>Impresion Color</strong><span class="Estilo3">.........	</span> 
    <label>
    <input type="text" name="txtcolor" id="txtcolor" />
    </label>
    <strong>Scanner</strong><span class="Estilo3">..................	.</span>  
    <label>
    <input type="text" name="txtscan" id="txtscan" />
    </label>
  </p>
  <p><strong>Hoja Carta B</strong><span class="Estilo1"><span class="Estilo2">lanca</span><span class="Estilo3"><strong>.</strong>....</span> </span>
    <label>
    <input type="text" name="txtcarta" id="txtcarta" />
    </label>
    <strong>Hoja Oficio Blanca</strong><span class="Estilo1">.	.</span>
    <label>
  <input type="text" name="txtoficio" id="txtoficio" />
  </label>
  </p>
  <p><strong>Hoja Carta Amarilla<span class="Estilo3">..	</span></strong>
    <label>
    <input type="text" name="txtcamarilla" id="txtcamarilla" />
    </label>
    <strong>Hoja Oficio Amarilla	</strong>  
    <label>
    <input type="text" name="txtoamarilla" id="txtoamarilla" />
    </label>
  </p>
  <p><strong>Hoja Doble Carta<span class="Estilo3">......</span></strong> 
    <input type="text" name="txthdoblec" id="txthdoblec" />
    <strong>Corchetes<span class="Estilo1"><span class="Estilo3">...............	..</span></span></strong>  
    <span class="Estilo1">
    <label>    </label>
    </span>
    <label>
    <input type="text" name="txtcorchetes" id="txtcorchetes" />
    </label>
  </p>
  <p><strong>Bond Blanca</strong></p>
  <p><strong>Opalina Oficio B<span class="Estilo3">.......	</span></strong>
    <span class="Estilo3">
    <label>    </label>
    </span>
    <label>
    <input type="text" name="txtopab" id="txtopab" />
    </label>
    <label><strong>Opalina Oficio C<span class="Estilo3">.....	..</span></strong>
    <input type="text" name="txtopac" id="txtopac" />
    </label>
  </p>
  <p><strong>Lomo Negro<span class="Estilo3">............	</span> </strong>
    <label>
    <input type="text" name="txtlomonc" id="txtlomonc" />
    </label>
    <strong>Lomo Negro<span class="Estilo3">.............	..</span></strong>
    <label></label>
    <label>
    <input type="text" name="txtlomoncm" id="txtlomoncm" />
    </label>
  </p>
  <p><strong>Carta Narrow</strong><span class="Estilo3">.................................................</span><strong>Carta Medium</strong></p>
  <p><strong>Lomo Negro</strong><span class="Estilo3">..............</span>
    <label>
    <input type="text" name="txtlomono" id="txtlomono" />
    </label>
    <strong>Lomo Negro<span class="Estilo3">..............</span></strong>
    <label>
    	<input type="text" name="txtlomonom" id="txtlomonom" />
    </label>
  </p>
  <p><strong>Oficio Narrow<span class="Estilo3">..................................................</span>Oficio Medium</strong></p>
  <p>
    <label><span class="Estilo3">.........................................................................</span></label>
    <input type="submit" name="btnenviar" id="btnenviar" value="Enviar" />
    <span class="Estilo3">
    .....</span></p>
  </form>

formulario.php

Código:
<?php

echo '<font color=\"Red">Centro Costos :</font> '.						$_REQUEST ["txtcostos"].'<br>';
echo '<font color=\"Red">Solicitante :</font> '.						$_REQUEST ["txtnombre"].'<br>';
echo '<font color=\"Red">Nombre Trabajador :</font> ' .					$_REQUEST ["txttrabaja"].'<br>';
echo '<font color=\"Red">Impresion B/N :</font> '.						$_REQUEST ["txtimpresion"].'<br>';
echo '<font color=\"Red">Impresion Color :</font> ' .					$_REQUEST ["txtcolor"].'<br>';
echo '<font color=\"Red">Sacanner :</font> '.							$_REQUEST ["txtscan"].'<br>';
echo '<font color=\"Red">Hoja Oficio Blanca :</font> '. 				$_REQUEST ["txtoficio"].'<br>';
echo '<font color=\"Red">Hoja Carta Amarilla :</font> '.				$_REQUEST ["txtcamarilla"].'<br>';
echo '<font color=\"Red">Hoja Oficio Amarilla :</font> '.  				$_REQUEST ["txtoamarilla"].'<br>';
echo '<font color=\"Red">Hoja Doble Carta Bound Blanca :</font> '.		$_REQUEST ["txthdoblec"].'<br>';
echo '<font color=\"Red">Corchetes :</font> '.							$_REQUEST ["txtcorchetes"].'<br>';
echo '<font color=\"Red">Opalina Oficio Blanca :</font> ' .				$_REQUEST ["txtopab"].'<br>';
echo '<font color=\"Red">Opalina Oficio Color :</font> '.				$_REQUEST ["txtopac"].'<br>';
echo '<font color=\"Red">Lomo Negro Carta Narrow :</font> '.			$_REQUEST ["txtlomonc"].'<br>';
echo '<font color=\"Red">Lomo Negro Carta Medium :</font> '.			$_REQUEST ["txtlomoncm"].'<br>';
echo '<font color=\"Red">Lomo Negro Oficio Narrow :</font> '.			$_REQUEST ["txtlomono"].'<br>';
echo '<font color=\"Red">Lomo Negro Oficio Medium :</font> '.			$_REQUEST ["txtlomonom"].'<br>';
echo ''.'<br>';
echo ''.'<br>';
echo '<a href="index.php">Volver</a> <br>';

?>

Última edición por xpitutox; 12/05/2010 a las 12:50