<?php if(isset($_GET['nom'])){ $nom=$_SESSION['nom']=$_GET['nom']; } else{ $nom=""; }?> <form method="post" action="formulaire2.php"> votre nom "> <form>
<?php session_start(); if(isset($_POST['nom'])){ $nom=$_POST['nom']; } elseif(isset($_SESSION['nom']) && !empty($_SESSION['nom'])){ $nom=$_SESSION['nom']; } else{ $nom=""; } if(isset($_SESSION['mail']) && !empty($_SESSION['mail'])){ $mail=$_SESSION['mail']; } else{ $mail=""; } ?> <form method="post" action="traitement.php"> nom "> votre mail "> '"> <form>
<?php session_start(); $nom=$_SESSION['nom']=$_POST['nom']; $mail=$_SESSION['mail']=$_POST['mail']; echo ''; print_r($_POST); echo ' '; echo '[formulaire2.php retour]'; ?>
Quelques mots de remerciements seront grandement appréciés. Ajouter un commentaire
191 internautes nous ont dit merci ce mois-ci