View Full Version : Include W/o Echoes
In a certain script I have, I would like to call out the variable from another script, but if I use the include function, it displays that whole page of stuff. Is there anyway to call a variable from another .php without include or require?
07-28-2007, 09:32 PM
$_SESSION['MySession'] = "This is a load of stuff that my first page has created";
//This shows "This is a load of stuff that my first page has created" on the screen.
NOTE: You must start both pages with session_start(); and it has to be the FIRST thing on the page.
Will erase the session variable when needed!
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.