[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
--- [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. I
Hi there!
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?
/G
@varupiraten.se
--
PHP General Mailing List (http://www.php.net/)
To
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 Maga
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 r
Trying to get my head around relationship between/use of $_GET, $_POST and
$_REQUEST.
It seems to me that $_REQUEST is most useful as if it is used in place of
$_POST/$_GET it would be possible to change posting method without changing the
code.
I am kind of assuming that $_REQUEST is and
[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
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?
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PROTEC
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
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 c:\http\cgi\list7
Folks
I am currently using 4.3.7.
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
Folks
I am currently using 4.3.7.
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 c
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 Gene
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 (2
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 (2Mb and more of php cod
>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 thin
ðÒÉ×ÅÔ!
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
> 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 r
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 fo
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
ðÒÉ×ÅÔ!
Scott Fletcher wrote:
> Can the $_REQUEST be trusted?? The documentation said it is the combination
> of $_GET, $_POST, $_COOKIE & $_FILE. If the PHPSESSID is found in
> $_REQUEST, I can tell it is from $_COOKIE. I wonder if the PHPSESSID can be
> stored into $_REQUEST if hte $_COOKIE
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,
Can the $_REQUEST be trusted?? The documentation said it is the combination
of $_GET, $_POST, $_COOKIE & $_FILE. If the PHPSESSID is found in
$_REQUEST, I can tell it is from $_COOKIE. I wonder if the PHPSESSID can be
stored into $_REQUEST if hte $_COOKIE is unavailable or turned off?
FletchSO
23 matches
Mail list logo