ehhhh, yo se hacerlo pero va a otra pagina
formulario.php
Cita: <html>
<head>
<title>Problema</title>
</head>
<body>
<form action="cuenta.php" method="post">
Ingrese primer valor:
<input type="text" name="valor1">
<br>
<input type="submit" name="operar">
</form>
</body>
</html>
cuenta.php
Cita: <html>
<head>
<title>Problema</title>
</head>
<body>
<?php
$dato=$_REQUEST['valor1'] * 5;
echo "El total es ".$dato;
?>
</body>
</html>
lo he probado asi que funciona