|
-
Aug 3rd, 2002, 03:04 PM
#1
Thread Starter
Stuck in the 80s
$_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: "
-
Aug 3rd, 2002, 03:39 PM
#2
Fanatic Member
second works for me
-
Aug 3rd, 2002, 03:46 PM
#3
Thread Starter
Stuck in the 80s
Well that's a bucket of pee. I guess I just stick with $_COOKIE[];
-
Aug 3rd, 2002, 03:48 PM
#4
Fanatic Member
you cant request a cookie
-
Aug 3rd, 2002, 03:49 PM
#5
Thread Starter
Stuck in the 80s
Originally posted by Gimlin
you cant request a cookie
What?
-
Aug 3rd, 2002, 03:53 PM
#6
Fanatic Member
I you cant $_REQUEST[a cookie] you have to use $COOKIE[the cookie]
I could be wrong.
-
Aug 3rd, 2002, 07:48 PM
#7
Fanatic Member
$_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
-
Aug 3rd, 2002, 07:51 PM
#8
PowerPoster
Interesting though that the manual says it does include $_COOKIE, and $_FILES
-
Aug 3rd, 2002, 08:34 PM
#9
Frenzied Member
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
-
Aug 3rd, 2002, 08:36 PM
#10
Fanatic Member
btw, while we are on the subject, are $_POST,$_GET,$_REQUEST,$_COOKIE,$_SESSION,$_FILES case sensative?
-
Aug 3rd, 2002, 08:44 PM
#11
Frenzied Member
yes they have to be capitals
-
Aug 3rd, 2002, 10:03 PM
#12
Thread Starter
Stuck in the 80s
Yeah, that's (the manual) why I thought you could.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|