View Single Post
Old 08-11-2010, 11:28 AM  
amphibient
Registered User
 
Join Date: Jul 2003
Location: Florida
Posts: 21
how are you accessing $go and $pid in script.php?

if you set them the 'local' way like you did above, they won't be in $_REQUEST or any of those variables, but will be like you included the contents of script.php at that point in your file that includes script.php.

To test this i created 2 files: included.php and includer.php

included.php:

<?php
print 'one ->'.$one."\n";
print 'two ->'. $two."\n";
?>

includer.php

<?php

$one='chicken';
$two='1';
include("/path/to/included.php");
?>

...and the output:

one ->chicken
two ->1


you may have a variable scope issue, but that's easily worked out...
amphibient is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook