pass variable in php from one action to another

Submitted by techrev on Mon, 03/20/2017 - 16:02
Forums

Put

<?php
// Start the session
session_start();
?>

at the beginning

 

then use

$_SESSION['varname'] = $up_firmno;

for one action to store the value to varname

and

use

$up_firmno = $_SESSION['varname'];

to get the varname value in another action (file)