Re: Value for entire file
| From: | Bobby Patel | Date: | Fri, 18 Jul 2003 05:11:07 +0000 |
| Subject: | Re: Value for entire file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155724@lists.php.net to get a copy of this message | ||
it should be in the $_GET or $HTTP_GET_VARS array in the index.php script.
put this at the top of your index.php script
var_dump ($_GET); # or $HTTP_GET_VARS depending on PHP version
and see if the value is there. Also, if you are using the value in a
function and you have PHP < 4.1.0 (I think), GET array is not global so to
get this value you have to declare the array global
example
function some_function () {
global $_GET;
echo $_GET['year'];
}
NOT
function some_function () {
echo $_GET['year'];
}
Bobby
"Uma Shankari T." <umashankari@lantana.tenet.res.in> wrote in message
news:Pine.LNX.4.33.0307181003570.9494-100000@lily.iitm.ernet.in...
>
> Hello,
>
> I am facing one problem..i am getting one variable value from another
> file by using href..I need to use that value in the entire file..how can i
> do that..??
>
> for example i am using the href like this..
>
> <a href=$next/index.php?year=Apr1998 target=right>
>
> i am passing the Apr1998 to the index file..i need to use the Apr1998
> value fully in any places in index.php..how can i use that ??
>
> please advice me..
>
> Regards,
> Uma
>