if you're variables are in fields you can access them using POST or GET.
$var_post = $_POST['field_name'];
$var_post = $_GET['field_name'];
you could also use $_REQUEST['field_name'];
you could force it onto the query string, that's probably not great code
though.
<a href="http://url.com?field=var>test</a>
$var = $_GET['field']; // which would be var
i'm not sure if you can access the variables directly though.
"Dante" <pi******@reno.com> wrote in message
news:f0**************************@posting.google.c om...
Hi. I am designing a page and want to use global variables, but I
can't quite get them to work. For example I have this:
<?php echo $title ?>
...text...
<?php require_once ("colophon.php") ?>
In the body of my page. In colophon.php I have the line
<?php $title="Title" ?>
I cannot access the variable though, even when I tried
<?php echo GLOBAL["title"] ?>
Can this be done? If so, how?
Thanks.