Is $_REQUEST case sensitive ?

I mean i am passing a variable with value in uppercase to a URL via query string and when i read the variable at the recieving end, i get it in lowercase.
This causes problems with MS SQL Server which is case sensitive.

I am using new version of PHP
PHP Version 4.3.0 on windows 2000

e.g.
Value before passing A!S@D#F$
encryption before passing encrypt I)[HL+N,

after passing, see both converted to lowercase.

  1. i)[hl+n,

  2. a!s@df$

I am using $pass = $_REQUEST('pass') ;
$pass as it is will not give me any value. (register_globals is set to off)

How do i maintain the case as it is from a querystring ?

Thanks.
Brij.

    No, $_REQUEST is not case insensitive; perhaps your client-side encryption is?

    If it's in the querystring, remember to proproperly encode it (only certain characters are allowed; the others have to be escaped in the form %hh), and you can use $_GET['pass'] in the receiving page.

    Better yet; don't use a GET-method form, all that achieves is leaving the pre-encrypted password lying around in the browser's history for anyone to use. Use POST and pick it up at the other in in $_POST[].

    But if those don't solve your problem, you'll need to supply additional information.

      Write a Reply...