dimanche 3 janvier 2021

Facing issue while sening php session value to another page

Page1 
header("Location:Page2.php");
session_start();
$_SESSION['username']=$NOFCHILDREN;


Page2 
  session_start();
    $name=$_SESSION['username'];
  echo $name;

On Page 2 it is showing error that "Notice: Undefined index: username in " Any solution to this problem??




Aucun commentaire:

Enregistrer un commentaire