1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<?php
$prenom = (isset($_POST['prenom'])?$_POST['prenom']:"");
$nom = (isset($_POST['nom'])?$_POST['nom']:"");
if(isset($_POST['button'])){
if(!empty($prenom) && !empty($nom)){
header('Location: reponseform.php');
exit();
}
}
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
//header('Pragma: private');
//header('Cache-control: private, must-revalidate');
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
?>
<html>
<head>
<body>
<form method="post" action="">
<p>Nom: <input name="nom" type="text" value="<?php echo $nom ?>" /></p>
<p>prenom: <input name="prenom" type="text" value="<?php echo $prenom ?>" /></p>
<p><input name="button" type="submit" value="envoyer" /></p>
</form>
</body>
</head>
</html> |
Partager