#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    4
    Rep Power
    0
    Is there some global variable that will tell me what argument was passed to the PHP file? What I am currently using is this:
    file.php?variable=value
    But what I want to do is this:
    file.php?value
    Is there some global variable that would hold the value of "value" in it?

    Thanks,
    Ishamael
  2. #2
  3. No Profile Picture
    Gödelian monster
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 1999
    Location
    Central Florida, USA
    Posts
    2,307
    Rep Power
    62
    Check out the documentation on $HTTP_GET_VARS and $HTTP_POST_VARS
  4. #3
  5. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    you can get the value using getenv() function.

    eg:

    <?php
    $value=getenv('QUERY_STRING');
    ?>

    Good Luck!!

    ------------------
    SR -
    shiju.dreamcenter.net

    "The fear of the LORD is the beginning of knowledge..."

    [This message has been edited by Shiju Rajan (edited May 29, 2000).]

Similar Threads

  1. handle a variable argument list in a #define ?
    By balance in forum C Programming
    Replies: 4
    Last Post: February 9th, 2004, 06:21 PM
  2. Replies: 1
    Last Post: February 7th, 2004, 05:23 PM
  3. accessing a global variable between multiple scripts
    By Balakumaran in forum Perl Programming
    Replies: 0
    Last Post: January 28th, 2004, 09:33 AM
  4. global variable usage
    By kubicon in forum C Programming
    Replies: 5
    Last Post: December 22nd, 2003, 05:21 PM
  5. variable scope
    By buckenmeyer in forum PHP Development
    Replies: 7
    Last Post: December 7th, 2003, 09:03 AM

IMN logo majestic logo threadwatch logo seochat tools logo