Boneripper wrote:
hi,

im trying to do this:
...
<BR>
<? if ($_SESSION['valores_relativos']) echo '<img
src="./5_grafico_total.php">';
else include ("./5_grafico_total.php");?>
</FONT>
...

and it works perfectly, BUT

if i wanna send vars with GET like:
...
<BR>
<? if ($_SESSION['valores_relativos']) echo '<img
src="./5_grafico_total.php?aVar=aValue">';
else include ("./5_grafico_total.php?aVar=aValue");?>
</FONT>

include cannot pass variables as in get request, set the variables first and then include the file:


<? if ($_SESSION['valores_relativos']) echo '<img
src="./5_grafico_total.php?aVar=aValue">';
else {
        $_GET['aVar'] = 'aValue';
        include ("./5_grafico_total.php");?>
}
?>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to