Re: [PHP] $_REQUEST or $_POST?

2005-01-18 Thread Richard Lynch
[EMAIL PROTECTED] wrote: I've learned to use $_REQUEST but it seems to me that it uses any $_GEt, or $_POST. Is it better to $_POST when I'm just using $_POST? It seems like that if I want good code, but I mean is it faster with $_POST? Not faster. Maybe cleaner, if you only want to allow

Re: [PHP] $_REQUEST or $_POST?

2005-01-17 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: I've learned to use $_REQUEST but it seems to me that it uses any $_GEt, or $_POST. Is it better to $_POST when I'm just using $_POST? It seems like that if I want good code, but I mean is it faster with $_POST? It's not faster, but it is a better practice. It is

Re: [PHP] $_REQUEST

2005-01-10 Thread Thomas Munz
Be carfull with this super var. This var is a merge of the GET, POST and FILES, and so only 1 index can only exists. If you have an index in the POST field called 'test' and also and index calles test in the FILES or GET var, than only one index of them is avaible and the other are gone I

Re: [PHP] $_REQUEST

2005-01-10 Thread John Holmes
Benjamin Edwards wrote: I am kind of assuming that $_REQUEST is and aggregate of $_POST, $_GET and $_FILES. Is this correct or are there differences. It's a combo of $_GET, $_POST and $_COOKIE. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The

RE: [PHP] $_REQUEST

2004-11-15 Thread Jay Blanchard
[snip] there seems to be a limit to how many form variables I can get wtih a $_REQUEST. does anyone know how to get an large amount of variables? [/snip] Look at $_POST -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_Request from 4.3 to v5.x

2004-07-13 Thread John W. Holmes
Michael Purdy wrote: I have a script which accepts three POSTed variables from a basic form. Under 4.3.7 the script runs fine and the variables are successfully passed to the script. I am testing 5.0 C3 and receive the following error PHP Notice: Undefined index: searchtype in

Re: [PHP] $_Request from 4.3 to v5.x

2004-07-13 Thread Justin Patrin
If you turn off notices in your app, you won't get that. error_reporting = E_ALL ~E_NOTICE Or, you could use isset to make sure that it was submitted (best option). $searchtype = isset($_REQUEST['searchtype'] ? $_REQUEST['searchtype'] : false; On Wed, 14 Jul 2004 00:18:22 +1000, Michael Purdy

Re: [PHP] $_REQUEST non populated

2003-11-20 Thread Marek Kilimajer
Andrea Pinnisi wrote: I've made a php script that works fine on many servers, but in one of them I get $_REQUEST not populated, if I print_r($_REQUEST) I get my cookies, and not GET or POST vars! I need to user _REQUEST and not _GET or _POST for some reason, and I can't change all the scripts

Re: [PHP] $_REQUEST non populated

2003-11-20 Thread Andrea Pinnisi
Marek Kilimajer ha scritto: variables_order - usualy set to EGPCS It's already EGPCS, I'm waiting more info from the system administrator of that server. Is there any enviroment variable that may help to solve this problem? I don't want to post the entire phpinfo :-) Thanks Andrea -- PHP

Re: [PHP] $_REQUEST???

2002-07-11 Thread Richard Lynch
Considering all of this... Would it be better simply to turn register_globals = On if the vast majority of the stuff you have on your site is simple search engine type stuff and/or GET variables? That's the reason why register_globals was originally ON. Actually, going way back, I don't think

Re: [PHP] $_REQUEST???

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! Patrick Teague wrote: Hello, Considering all of this... Would it be better simply to turn register_globals = On if the vast majority of the stuff you have on your site is simple search engine type stuff and/or GET variables? Well, such stuff needs NOT security, nedless to say.

Re: [PHP] $_REQUEST???

2002-07-09 Thread Patrick Teague
Hello, Considering all of this... Would it be better simply to turn register_globals = On if the vast majority of the stuff you have on your site is simple search engine type stuff and/or GET variables? Considering the fact that anyone can forge GET, POST, cookies, is there really any purpose

RE: [PHP] $_REQUEST???

2002-07-09 Thread Lazor, Ed
I'm not sure if it's true or not, but someone said all data coming through _POST and _COOKIES is filtered - making it safer than pulling the raw data from variables. While you're forging cookies, I'll take a few chocolate chip ;) -Original Message- Considering the fact that anyone can

RE: [PHP] $_REQUEST???

2002-07-09 Thread Philip Olson
I'm not sure if it's true or not, but someone said all data coming through _POST and _COOKIES is filtered - making it safer than pulling the raw data from variables. Filtered? Nothing is filtered. Only you know what data the users should be sending, validate accordingly and assume all

RE: [PHP] $_REQUEST???

2002-07-08 Thread Lazor, Ed
Are you trying to find out whether the person is logged in? You can also test the cookie with the isset function. -Original Message- Can the $_REQUEST be trusted?? The documentation said it is the combination of $_GET, $_POST, $_COOKIE $_FILE. If the PHPSESSID is found in $_REQUEST,