bonjour
un exemple
formulaire1.php
<?php
if(isset($_GET['nom'])){
$nom=$_SESSION['nom']=$_GET['nom'];
}
else{
$nom="";
}?>
<form method="post" action="formulaire2.php">
votre nom
">
<form>
formulaire2.php
<?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>
traitement.php
<?php
session_start();
$nom=$_SESSION['nom']=$_POST['nom'];
$mail=$_SESSION['mail']=$_POST['mail'];
echo '';
print_r($_POST);
echo '
';
echo '[formulaire2.php retour]';
?>
a++