NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
New to NuSphere - register_globals is off by default


Joined: 11 Jul 2006
Posts: 4
Reply with quote
I just installed NuSphere yesterday, and so far everything is working like a dream except...

I have a script that depends on a postback (a login script).

I've used LanuchBox to save my variable's values.

When I do this:
Code:
foreach($_POST as $key => $val){
    print "$key ... $val<BR>";
}


This is printed to the screen:
entered_id ... test1
entered_password ... test2


Just under that I do this:
Code:
print "DEBUG...$entered_id...$entered_password<BR>";


This is printed to the screen:
DEBUG......

What am I missing?
View user's profileFind all posts by coljamSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
What you are doing in your DEBUG print is printing out the $entered_id and $entered_password variables.
Unless you have assigned $_POST['entered_id'] and $_POST ['entered_password'] to them between
the two pieces of code you pasted, they will be pretty much be unknown in the more recent versions of PHP,
since those variables get created only if you have 'register_globals' enabled.

This is disabled by default in the latest versions (from 4.something on and up) due to the fact that it's a
serious security issue.
View user's profileFind all posts by BlizzSend private messageVisit poster's website
New to NuSphere - register_globals is off by default
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic