PDA

Ver la versión completa : [DUDA] Remplazar variable str




DaXGoN
09-25-2009, 11:22 AM
YA pude solucionar el problema... muchas gracias =

Formulario:

<!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=utf-8" />
<title>Ejemplo 2</title>
</head>

<body>
<form action="desencriptador_4.php" method="POST">
Para desencriptar: <input type="text" name="mensaje" /><br />
<input type="submit" value="Desencriptar!" />
</form>
</body>
</html>Desencriptador:

<!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=utf-8" />
<title>Desencriptador BB 4</title>
</head>

<body>
<?php
$mensaje = $HTTP_POST_VARS["mensaje"];
$decrip_a2 = str_replace("a","e",$mensaje);
echo $_POST["mensaje"];
?></body>
</html>:D Gracias espero ayuda