<?php if (isset($_POST['btn'])) { echo urldecode($_POST['tutu']); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" /> <script type="text/javascript"> function test(chaine, cible) { cible.value = escape(chaine); } </script> </head> <form name="toto" method="post" action="" onsubmit="test(this.tutu.value, this.tutu)"> </form> </html>