By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,035 Members | 1,471 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,035 IT Pros & Developers. It's quick & easy.

isset($_REQUEST['var']) works fine on one server but not on another

P: n/a
Hello,

The isset($_REQUEST['var']) works okay on other servers but not on
mine. The way the application works is the links are provided as:

http://url.com/cc.php?page=currencies&new

And then in cc.php the code is

if isset($_REQUEST['new']) {
...
}

The problem is with the above code it sees new as not set and the if
statement isn't exectuted. The same code on other servers works OK.

If I change the url to:
http://url.com/cc.php?page=currencies&new=
or
http://url.com/cc.php?page=currencies&new=something

Then the isset($_REQUEST['new']) will be true.

Is there any setting in my php config to make php see 'new' variable
as set as I've shown in the first url in this message?

Thanks,

Sean
email: sean "at" yip "dot" org
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Sean wrote:
Hello,

The isset($_REQUEST['var']) works okay on other servers but not on
mine. The way the application works is the links are provided as:

http://url.com/cc.php?page=currencies&new

And then in cc.php the code is

if isset($_REQUEST['new']) {
...
}

The problem is with the above code it sees new as not set and the if
statement isn't exectuted. The same code on other servers works OK.

If I change the url to:
http://url.com/cc.php?page=currencies&new=
or
http://url.com/cc.php?page=currencies&new=something

Then the isset($_REQUEST['new']) will be true.

Is there any setting in my php config to make php see 'new' variable
as set as I've shown in the first url in this message?


I don't think so. I always use 'script?php?var=' if I want an empty
variable 'var' that is 'set'.

JP

--
Sorry, <de*****@cauce.org> is een "spam trap".
E-mail adres is <jpk"at"akamail.com>, waarbij "at" = @.
Jul 17 '05 #2

P: n/a
Jan Pieter Kunst wrote:
I don't think so. I always use 'script?php?var=' if I want an empty
variable 'var' that is 'set'.


Read that as 'script.php?var=', of course. Sorry.

JP

--
Sorry, <de*****@cauce.org> is een "spam trap".
E-mail adres is <jpk"at"akamail.com>, waarbij "at" = @.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.