On Fri, August 24, 2007 3:20 am, Goltsios Theodore wrote:
Please do not encourage the use of $_REQUEST.
You might as well just tell people to enable register_globals again.
This is *SO* not correct at all!
$_REQUEST[] is merely array_merge($_GET, $_POST, $_COOKIE);
It is *NOT* in any way,
On Fri, August 24, 2007 6:34 am, Suamya Srivastava wrote:
by doing this can i disable the register_globals?
You can disable register_globals by using these:
$_GET['foo']
$_POST['foo']
$_REQUEST['foo'];
$_COOKIES['foo'];
$_SESSION['foo'];
$_ENV['foo'];
$_SERVER['foo'];
and never, ever, ever,
On 8/26/07, Richard Lynch [EMAIL PROTECTED] wrote:
This is *SO* not correct at all!
$_REQUEST[] is merely array_merge($_GET, $_POST, $_COOKIE);
Yes and it mimics being lazy - allowing overriding values from $_POST
vs. $_GET vs. $_COOKIE depending on what the programmer wants to
trust
It
On Sun, August 26, 2007 6:37 pm, mike wrote:
On 8/26/07, Richard Lynch [EMAIL PROTECTED] wrote:
It is *NOT* in any way, shape, or form, polluting the global
namespace
of all your variables, which is what register_globals is.
That is why I said it was *one* reason register_globals was
I'll say it again:
regsiter_globals has *NOTHING* to do with $_REQUEST.
Zero.
Zilch.
Nada.
Zip.
To me it allows for the same [lazy] behavior. Period. I've had other
people agree. Say what you want about it.
No, it only relies on one Designer who wants their request to look
like a FORM
I think that you can also do that buy making a drop down list with the
available databases and pass the chosen database to another (or perhaps
the same) script and make the queries and output results there. You can
catch the posted or got option buy using the $_REQUEST array ($_GET and
On 8/24/07, Goltsios Theodore [EMAIL PROTECTED] wrote:
the posted or got option buy using the $_REQUEST array ($_GET and $_POST are
included in that like a less lame solution). Let's say you have a
Please do not encourage the use of $_REQUEST.
You might as well just tell people to enable
I thought I just did a comment and suggested that it is a lame solution
to use $_REQUEST plus I did not know witch of the two method (POST or
GET) would be appropriate so I picked up the lame way :-) .
mike wrote:
On 8/24/07, Goltsios Theodore [EMAIL PROTECTED] wrote:
the posted or got
Thank you all for the help.
I did not want to use dropdown box..that was the very reason i was
wondering if I can pass the variables through a hyperlink. I used $_GET
and it worked fine. However, as mentioned in the posts its not advisable
to use $_REQUEST. Could you please elaborate on the
In this case $_POST would be the appropriate array, since your form is
using the POST method:
form method=post
Goltsios Theodore wrote:
I thought I just did a comment and suggested that it is a lame solution
to use $_REQUEST plus I did not know witch of the two method (POST or
GET)
Hi..
in the settings, session.use_cookies is turned ON but session.trans_sid is
turned OFF. do i need to enable this as well?
by doing this can i disable the register_globals?
- suamya
Hi
Me again
Check on Your setting - ; Whether to use cookies.
Hi
Me again
Check on Your setting - ; Whether to use cookies.
session.use_cookies = 1
session variable is saved here if the user have cookies turned off it will
still work if your have trans-sid turn on.
BTW you don't have to use a dropdown radio buttons or
Hi
I have sessions working like a charm, i use it for my user login vars and so
on, here is the settings i used.
register_globals = Off
session.use_cookies = 1
and switch on session.trans_sid if you know that not all your users will
have cookies turned on
This worked for me
Johan
Suamya
On 8/24/07, Suamya Srivastava [EMAIL PROTECTED] wrote:
Hi..
in the settings, session.use_cookies is turned ON but session.trans_sid is
turned OFF. do i need to enable this as well?
by doing this can i disable the register_globals?
- suamya
You need to make sure session_start() is called on
14 matches
Mail list logo