On Sat, 2004-02-14 at 15:46, Boneripper wrote: > <? if ($_SESSION['valores_relativos']) echo '<img > src="./5_grafico_total.php?aVar=aValue">'; > else include ("./5_grafico_total.php?aVar=aValue");?>
Using include literally inserts the contents of the file into your code. One way to achieve what you are looking for is to set the variables you want to pass as a query string before including the script: if ($_SESSION['valores_relativos']) { echo '<img src="./5_grafico_total.php?aVar=aValue">'; } else { $_GET[aVar] = 'aValue'; include ("./5_grafico_total.php"); } If you rely on register globals you would want to set the variables directly like so: if ($_SESSION['valores_relativos']) { echo '<img src="./5_grafico_total.php?aVar=aValue">'; } else { $aVar = 'aValue'; include ("./5_grafico_total.php"); } -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php