How exactly does it "launch" this other page? If all you do is include the second page, then all the variables and functions in scope when you call include() in script1.php are available in script2.php.
Example:
<?php /* script2.php */
echo $text;
?>
<?php /* script1.php */
$text = 'lots of text.';
include('script2.php');
?>
This will print 'lots of text.' to the client.
If your two scripts are being executed as part of two different pages, then store the variables you want to persist across requests in a session variable.
<?php /* script1.php */
session_start();
$_SESSION['text'] = 'some text.';
echo '<a href="script2.php">click here</a>\n";
?>
( user clicks the link )
<?php /* script2.php */
session_start();
echo $_SESSION['text'];
?>
This will print 'some text.' to the client.
Take care,
Nik
http://www.bigaction.org/