Jump to content

Header


Eljay

Recommended Posts

www.php.net/session

 

Session variables are the way to go.

 

<?php
session_start(); // must be at the top of the page BEFORE any output and on any other page you want to reference session variable at
$_SESSION['lval'] = 1;
$_SESSION['msg'] = $msg;
header("Location: ../message/detail.php");

 

Should work.

Link to comment
https://forums.phpfreaks.com/topic/58653-header/#findComment-291536
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.