Jump to content

How to copy a variable from one page to another page?


suigion

Recommended Posts

try to use session...put the cmd session_start() at the beggining of ur code...

in page A code

<?php

session_start();

$_SESSION['var'] = $var;

?>

 

to retrieve thje var in  page B:

<?php

$var = $_SESSION['var'];

?>

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.