Results 1 to 12 of 12

Thread: $_request

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    $_request

    According to the manual:

    consisting of the contents of $_GET, $_POST, $_COOKIE, and $_FILES.
    However, $_REQUEST[] won't work for me with cookies:

    PHP Code:
    echo "User is: " $_COOKIE['user'] . "<br>"//will give "User is: Kristopher"

    echo "User is: " $_REQUEST['user']; //will give "User is: " 
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    second works for me

  3. #3

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Well that's a bucket of pee. I guess I just stick with $_COOKIE[];
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    you cant request a cookie

  5. #5

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Gimlin
    you cant request a cookie
    What?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    I you cant $_REQUEST[a cookie] you have to use $COOKIE[the cookie]

    I could be wrong.

  7. #7
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    $_REQUEST['variable'] only works for $_GET['variable'] and $_POST['variable']
    It will not grab $_COOKIE['variable'], $_SESSION['variable'], or $_FILES['variable']

    Or so I think. It may grab $_FILES['variable'] but I never have tested it for that purpose
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  8. #8
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Interesting though that the manual says it does include $_COOKIE, and $_FILES

  9. #9
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    exactly. I always thought so too but never could get it to work with cookies or files. I think the manual is a misprint myself.

    funny it tells you that but then it tells you to use $_cookies for cookies and $_files for files.

    but the last I checked it will only work for get and post

  10. #10
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    btw, while we are on the subject, are $_POST,$_GET,$_REQUEST,$_COOKIE,$_SESSION,$_FILES case sensative?
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  11. #11
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    yes they have to be capitals

  12. #12

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Yeah, that's (the manual) why I thought you could.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

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



Click Here to Expand Forum to Full Width