Value for entire file

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Value for entire file


    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

    Uma Shankari T. Guest

  2. Similar Questions and Discussions

    1. How do I convert an entire xls spreadsheet into only 1 pdf file?
      How do I convert an entire xls spreadsheet into 1 pdf file. It will only convert one sheet per pdf file.
    2. extracting an entire node from XML file
      i have a file which i have to write in C#. i want to extract an entire node by itself at once ( wherever it occurs in the file .. as ) <?xml...
    3. Saving entire file
      Can someone help me with the following code. It just saves/prints the line in which 'hello' occured. why doesn't it save the entire file i.e why...
    4. [PHP] Value for entire file
      > -----Original Message----- No, $_GET has always been superglobal, it just didn't exist before 4.1.0 -- so for PHP <4.1.0 it's: function...
    5. [PHP] Value for entire file
      On Friday 18 July 2003 12:40, Uma Shankari T. wrote: You should be using correctly formed HTML: <a href="..." xxx="..."> echo $_GET; //...
  3. #2

    Default Re: Value for entire file

    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
    >

    Bobby Patel Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139