<?php // récupération des variables : $test = isset($_POST['test']) ? $_POST['test'] : ''; //traitement du formulaire if(isset($_POST['form_valid'])){ echo "<br><b> test =</b> " .$test; } ?> <html> <head><title>test</title></head> <body> <form action="" method="post"> <input type="text" name="test" value="<?php echo $test;?>"> <input type ="submit" name="form_valid" value="valider"> </form> </body> </html>